Several chafed at his plans as President Trump enacted immigration measures affecting their countries and vowed to impose tariffs on Mexico and Canada.