The Consumer Price Index rose 2.4 percent in May, from a year ago, a reading that reflects only the initial impact of President Trump’s tariffs.