Inflation cooled a bit last month as prices for gas and used cars fell, a sign that stubbornly elevated cost pressures are slowly easing.