Inflation moved higher last month as the price of gas, groceries, hotel rooms and airfare rose, along with the cost of clothes and used cars.