US inflation cools and Americans step up spending as they brace for tariff impact