The Dow Jones Industrial Average, the S&P 500, and the Nasdaq Composite rose as the stock market reacted to the CPI inflation report.