US manufacturing rebounds despite tariff costs hitting consumers