U.S. stocks moved slightly higher Wednesday after a key inflation report showed a historic gain but largely matched expectations.

The S&P 500 added roughly 0.28% to 4,726.35, and the Nasdaq Composite rose 0.23% to 15,188.39 for its third straight positive day. The Dow Jones Industrial Average, which shuffled between modest gains and losses through the session, finished with a gain of 38.3 points, or 0.11%, at 36,290.32.