It was unclear whether Mr. Trump believed that the agreement truly represented new and broader concessions, or whether the president understood the limits of the deal but accepted it as a face-saving way to escape from the political and economic consequences of imposing tariffs on Mexico, which he began threatening less than two weeks ago.