On Solution Functions of Optimization: Universal Approximation and Covering Number Bounds