But the U.S. president raises new uncertainties over the fate of the trade deal with Mexico and Canada.