WASHINGTON — When times turn tough, presidents can hop on Air Force One to escape the country for a while and stride purposefully across the world stage. But the world stage was not so friendly this week for President Trump, who landed back in Washington on Wednesday night to confront a grim couple of weeks ahead.

Mocked by peers behind his back at a NATO meeting in London, Mr. Trump abruptly canceled a news conference and bolted early, only to fly home to a capital in the throes of judging whether he is fit for office. After hobnobbing with the queen, the president now faces the daunting likelihood that by Christmas he will become the third president impeached for high crimes and misdemeanors.

The NATO meeting had seemed like an opportunity to demonstrate his global leadership like Presidents Richard M. Nixon and Bill Clinton sought to do with overseas trips during their own impeachment struggles. Scheduled long ago, the meeting allowed Mr. Trump and his allies to assail his domestic foes as “unpatriotic” for proceeding with an impeachment hearing while the commander in chief was overseas and gave him a chance to boast of his success in pressing the allies to invest more in defense.

But the visit was soured by a contentious meeting with President Emmanuel Macron of France and a hot-mic video that captured other world leaders making fun of Mr. Trump. In response, a sullen president said one of the leaders caught talking on the video, Prime Minister Justin Trudeau of Canada, was “two-faced,” and then slipped out of town without the scheduled wrap-up session with reporters, seemingly intent on not further spoiling the image of a successful visit.