Stocks closed higher Wednesday, after a selloff Tuesday hit the more speculative and highly-valued pockets of the market.