G.M. Profit Shrinks on Billion-Dollar Tariff Hit