For a prime minister who has perhaps had his hardest two weeks in office, Donald Trump became the unlikely elixir of a tough political run.