Meanwhile, Sir Keir Starmer welcomed the ruling in his first comments on the matter, saying it gave “much needed clarity”.

The prime minister told the BBC: "I’m really pleased the court has clarified the position.

“We can move on from there. [I] think that has been very helpful.”