Dow, S&P 500 hit records as inflation growth slows