Trump didn't back down from imposing tariffs to Mexico and Canada because of anything Sheinbaum or Trudeau did.
He backed down because of the reaction of "the markets".
"The markets" is a metaphor for the interests of the ruling class, the interests of big money.
In case you have any doubts on who controls the US government (or any other for that matter) who ever is in office.