Stocks moved mostly higher over the course of the trading day on Wednesday, partly offsetting the pullback seen over the two previous sessions. The tech-heavy Nasdaq posted a standout gain, climbing to a three-month closing high.