U.S. stock indices rose following data indicating slowing inflation, despite concerns over President Trump's trade policies.