U.S. stocks extended their rally after the inflation data were made public, with the S&P 500 and Dow both rising 0.5% and the Nasdaq gaining 0.7%.