In public, Andy Burnham’s recent focus has been on securing better trade terms with the European Union and reforming Britain’s welfare system. In private, the prime minister has been preoccupied by what happens next in the Iran war.

For several weeks, Burnham and his most senior Cabinet colleagues have been consumed by the possibility Donald Trump could resume major strikes on Iran, according to people familiar with the matter. The UK has taken hope that the Republicans’ defeat in the midterms might temper Trump’s foreign policy. Ministers see the US president weighing options for a fresh attack, they said, a prospect that appears to have grown in recent days.

Burnham on Friday sealed a deal for closer EU ties that he said could boost the economy by 0.5% a year, bring down food prices and raise the prospect of lower electricity prices. Iran still looms in the background. Even if Trump decides against resuming his war, officials have told Burnham that all plausible outcomes will have a negative impact on the UK’s economy and security.