The rebuke of President Trump’s tariff plans came just days before sweeping tariffs on Canada and Mexico were expected to go into effect.