The Consumer Price Index rose 2.7 percent from a year earlier, as the global trade war started to bite.