Boris Johnson has been warned he could face a “citizen’s arrest” by a senior union boss after the prime minister's decision to suspend parliament was ruled unlawful by Scotland's highest court.

The prime minister's Brexit strategy was plunged into crisis when three senior judges at the Court of Session in Edinburgh said the order to close the doors of Westminster to MPs was "null and of no effect".

Labour Sir Keir Starmer said the ruling was "huge" and vowed to try to reopen parliament to hold Mr Johnson to account, as he addressed trade unionists at the TUC in Brighton.

Speaking afterwards, Len McCluskey, general secretary of the Unite union, told Sky News: "It is quite extraordinary what the Scottish courts have ruled.

“My advice to the prime minister is don't go up to Scotland, you're liable to face a citizen's arrest, so he'd best keep in his bunker somewhere in either Eton or Westminster.”

His concerns were echoed by fellow union boss Tim Roache, who urged him to recall parliament to "sort out the mess we are in".

Speaking on the final day of the annual TUC gathering, the GMB general secretary said: “After losing six votes in a row and his majority, it’s not surprising Johnson wants to avoid parliament. But that’s hardly what ‘taking back control’ looks like.

“Shutting down parliament for your own ends at a time of national crisis, when people’s jobs and livelihoods are on the line, beggars belief."

TSSA leader Manuel Cortes, who backs a second referendum, said the "shameful" prime minister should be behind bars, rather than in Downing Street.

Mr Cortes said: “Parliament must be immediately reopened – but Johnson should be in jail not Number 10.

Thousands protest after Boris Johnson requests to suspend parliament Show all 29 1 /29 Thousands protest after Boris Johnson requests to suspend parliament Thousands protest after Boris Johnson requests to suspend parliament Houses of Parliament An anti-Brexit supporter raises a sign during a protest in front of the Houses of Parliament in central London, Wednesday, Aug. 28, 2019. British Prime Minister Boris Johnson maneuvered on Wednesday to give his political opponents even less time to block a no-deal Brexit before the Oct. 31 withdrawal deadline, winning Queen Elizabeth II's approval to suspend Parliament. (AP Photo/Vudi Xhymshiti) Vudi Xhymshiti AP Thousands protest after Boris Johnson requests to suspend parliament Downing Street Anti-Brexit demonstrators hold placards as they protest outside of Downing Street in London on August 28, 2019. - British Prime Minister Boris Johnson sparked fury Wednesday among pro-Europeans and MPs opposed to a no-deal Brexit by forcing the suspension of parliament weeks before Britain's EU departure date. The pound slid on the surprise news, which opponents branded a "coup" and a "declaration of war" but Johnson claimed was necessary to allow him to pursue a "bold and ambitious" new domestic legislative agenda. (Photo by DANIEL SORABJI / AFP)DANIEL SORABJI/AFP/Getty Images DANIEL SORABJI AFP/Getty Images Thousands protest after Boris Johnson requests to suspend parliament Houses of Parliament Anti-Brexit supporters take part in a protest in front of the Houses of Parliament in central London, Wednesday, Aug. 28, 2019. British Prime Minister Boris Johnson maneuvered on Wednesday to give his political opponents even less time to block a no-deal Brexit before the Oct. 31 withdrawal deadline, winning Queen Elizabeth II's approval to suspend Parliament. (AP Photo/Vudi Xhymshiti) Vudi Xhymshiti AP Thousands protest after Boris Johnson requests to suspend parliament Houses of Parliament to Downing Street TOPSHOT - Anti-Brexit demonstrators hold placards as they take part in a protest march from Britain's Houses of Parliament to Downing Street in London on August 28, 2019. - British Prime Minister Boris Johnson announced Wednesday that the suspension of parliament would be extended until October 14 -- just two weeks before the UK is set to leave the EU -- enraging anti-Brexit MPs. MPs will return to London later than in recent years, giving pro-EU lawmakers less time than expected to thwart Johnson's Brexit plans before Britain is due to leave the European Union on October 31. (Photo by DANIEL SORABJI / AFP)DANIEL SORABJI/AFP/Getty Images DANIEL SORABJI AFP/Getty Images Thousands protest after Boris Johnson requests to suspend parliament Downing Street Anti-Brexit supporters gather outside the Prime Minister's residence 10 Downing Street in London, Wednesday, Aug. 28, 2019. British Prime Minister Boris Johnson asked Queen Elizabeth II on Wednesday to suspend Parliament, throwing down the gauntlet to his critics and causing outrage among opposition leaders who will have even less time to thwart a no-deal Brexit. (AP Photo/Matt Dunham) Matt Dunham AP Thousands protest after Boris Johnson requests to suspend parliament Houses of Parliament LONDON, ENGLAND - AUGUST 28: Pro-EU supporters protest outside the Houses of Parliament on August 28, 2019 in London, England. British Prime Minister Boris Johnson has written to Cabinet colleagues telling them that his government has requested the Queen suspend parliament for longer than the usual conference season. Parliament will return for a new session with a Queen's Speech on 14 October 2019. Some Remain supporting MPs believe this move to be a ploy to hinder legislation preventing a No Deal Brexit. (Photo by Peter Summers/Getty Images) Peter Summers Getty Images Thousands protest after Boris Johnson requests to suspend parliament Houses of Parliament epa07799808 A protestor outside the Houses of Parliament in Westminster, London, Britain, 28 August 2019. The UK government is to suspend Parliament after the summer break, a move that might block MPs from voting against a possible no-deal Brexit.. EPA/WILL OLIVER WILL OLIVER EPA Thousands protest after Boris Johnson requests to suspend parliament Houses of Parliament Anti-Brexit supporters take part in a protest near the Houses of Parliament in central London, Wednesday, Aug. 28, 2019. British Prime Minister Boris Johnson asked Queen Elizabeth II on Wednesday to suspend Parliament, throwing down the gauntlet to his critics and causing outrage among opposition leaders who will have even less time to thwart a no-deal Brexit. (AP Photo/Matt Dunham) Matt Dunham AP Thousands protest after Boris Johnson requests to suspend parliament Whitehall TOPSHOT - Demonstrators hold placards as they protest on Whitehall, near the entrance to Downing Street in London on August 28, 2019. - British Prime Minister Boris Johnson sparked fury Wednesday among pro-Europeans and MPs opposed to a no-deal Brexit by forcing the suspension of parliament weeks before Britain's EU departure date. The pound slid on the surprise news, which opponents branded a "coup" and a "declaration of war" but Johnson claimed was necessary to allow him to pursue a "bold and ambitious" new domestic legislative agenda. (Photo by DANIEL SORABJI / AFP)DANIEL SORABJI/AFP/Getty Images DANIEL SORABJI AFP/Getty Images Thousands protest after Boris Johnson requests to suspend parliament Houses of Parliament Anti-Brexit supporters take part in a protest at College Green near the Houses of Parliament in central London, Wednesday, Aug. 28, 2019. British Prime Minister Boris Johnson maneuvered Wednesday to give his political opponents even less time to block a no-deal Brexit before the Oct. 31 withdrawal deadline, winning Queen Elizabeth II's approval to suspend Parliament. (AP Photo/Matt Dunham) Matt Dunham AP Thousands protest after Boris Johnson requests to suspend parliament Anti-Brexit supporters take part in a protest at College Green near the Houses of Parliament in central London, Wednesday, Aug. 28, 2019. British Prime Minister Boris Johnson maneuvered Wednesday to give his political opponents even less time to block a no-deal Brexit before the Oct. 31 withdrawal deadline, winning Queen Elizabeth II's approval to suspend Parliament. (AP Photo/Matt Dunham) Matt Dunham AP Thousands protest after Boris Johnson requests to suspend parliament Protestors from the European Movement in Scotland hold a walking vigil on the Royal Mile, Edinburgh, to demonstrate against Prime Minister Boris Johnson temporarily closing down the Commons from the second week of September until October 14 when there will be a Queen's Speech to open a new session of Parliament. PRESS ASSOCIATION Photo. Picture date: Wednesday August 28, 2019. See PA story POLITICS Brexit. Photo credit should read: Jane Barlow/PA Wire Jane Barlow PA Thousands protest after Boris Johnson requests to suspend parliament Anti-Brexit supporters shout slogans as they gather outside the Prime Minister's residence 10 Downing Street in London, Wednesday, Aug. 28, 2019. British Prime Minister Boris Johnson asked Queen Elizabeth II on Wednesday to suspend Parliament, throwing down the gauntlet to his critics and causing outrage among opposition leaders who will have even less time to thwart a no-deal Brexit. (AP Photo/Matt Dunham) Matt Dunham AP Thousands protest after Boris Johnson requests to suspend parliament Anti-Brexit supporters take part in a protest at College Green near the Houses of Parliament in central London, Wednesday, Aug. 28, 2019. British Prime Minister Boris Johnson maneuvered Wednesday to give his political opponents even less time to block a no-deal Brexit before the Oct. 31 withdrawal deadline, winning Queen Elizabeth II's approval to suspend Parliament. (AP Photo/Matt Dunham) Matt Dunham AP Thousands protest after Boris Johnson requests to suspend parliament Anti-Brexit supporters take part in a protest at College Green near the Houses of Parliament in central London, Wednesday, Aug. 28, 2019. British Prime Minister Boris Johnson maneuvered Wednesday to give his political opponents even less time to block a no-deal Brexit before the Oct. 31 withdrawal deadline, winning Queen Elizabeth II's approval to suspend Parliament. (AP Photo/Matt Dunham) Matt Dunham AP Thousands protest after Boris Johnson requests to suspend parliament Anti-Brexit supporters gather outside the Prime Minister's residence 10 Downing Street in London, Wednesday, Aug. 28, 2019. British Prime Minister Boris Johnson asked Queen Elizabeth II on Wednesday to suspend Parliament, throwing down the gauntlet to his critics and causing outrage among opposition leaders who will have even less time to thwart a no-deal Brexit. (AP Photo/Matt Dunham) Matt Dunham AP Thousands protest after Boris Johnson requests to suspend parliament Anti-Brexit supporters take part in a protest at College Green near the Houses of Parliament in central London, Wednesday, Aug. 28, 2019. British Prime Minister Boris Johnson maneuvered Wednesday to give his political opponents even less time to block a no-deal Brexit before the Oct. 31 withdrawal deadline, winning Queen Elizabeth II's approval to suspend Parliament. (AP Photo/Matt Dunham) Matt Dunham AP Thousands protest after Boris Johnson requests to suspend parliament Shadow home secretary Diane Abbott addresses protesters outside the Houses of Parliament, London, to demonstrate against Prime Minister Boris Johnson temporarily closing down the Commons from the second week of September until October 14 when there will be a Queen's Speech to open a new session of Parliament. PRESS ASSOCIATION Photo. Picture date: Wednesday August 28, 2019. See PA story POLITICS Brexit. Photo credit should read: Kirsty O'Connor/PA Wire Kirsty O'Connor PA Thousands protest after Boris Johnson requests to suspend parliament epa07799846 Protesters gather outside the Houses of Parliament in Westminster, London, Britain, 28 August 2019. The UK government is to suspend Parliament after the summer break, a move that might block MPs from voting against a possible no-deal Brexit. EPA/WILL OLIVER WILL OLIVER EPA Thousands protest after Boris Johnson requests to suspend parliament Anti-Brexit supporters gather outside the Prime Minister's residence 10 Downing Street in London, Wednesday, Aug. 28, 2019. British Prime Minister Boris Johnson asked Queen Elizabeth II on Wednesday to suspend Parliament, throwing down the gauntlet to his critics and causing outrage among opposition leaders who will have even less time to thwart a no-deal Brexit. (AP Photo/Matt Dunham) Matt Dunham AP Thousands protest after Boris Johnson requests to suspend parliament Anti-Brexit supporters carry a flare near the Cenotaph in central London, Wednesday, Aug. 28, 2019. British Prime Minister Boris Johnson asked Queen Elizabeth II on Wednesday to suspend Parliament, throwing down the gauntlet to his critics and causing outrage among opposition leaders who will have even less time to thwart a no-deal Brexit. (AP Photo/Matt Dunham) Matt Dunham AP Thousands protest after Boris Johnson requests to suspend parliament Anti-Brexit demonstrators hold placards as they protest outside of Downing Street in London on August 28, 2019. - British Prime Minister Boris Johnson sparked fury Wednesday among pro-Europeans and MPs opposed to a no-deal Brexit by forcing the suspension of parliament weeks before Britain's EU departure date. The pound slid on the surprise news, which opponents branded a "coup" and a "declaration of war" but Johnson claimed was necessary to allow him to pursue a "bold and ambitious" new domestic legislative agenda. (Photo by DANIEL SORABJI / AFP)DANIEL SORABJI/AFP/Getty Images DANIEL SORABJI AFP/Getty Images Thousands protest after Boris Johnson requests to suspend parliament Anti-Brexit demonstrators hold placards as they protest outside of Downing Street in London on August 28, 2019. - British Prime Minister Boris Johnson sparked fury Wednesday among pro-Europeans and MPs opposed to a no-deal Brexit by forcing the suspension of parliament weeks before Britain's EU departure date. The pound slid on the surprise news, which opponents branded a "coup" and a "declaration of war" but Johnson claimed was necessary to allow him to pursue a "bold and ambitious" new domestic legislative agenda. (Photo by DANIEL SORABJI / AFP)DANIEL SORABJI/AFP/Getty Images DANIEL SORABJI AFP/Getty Images Thousands protest after Boris Johnson requests to suspend parliament LONDON, ENGLAND - AUGUST 28: Pro-EU supporters protest outside the Houses of Parliament on August 28, 2019 in London, England. British Prime Minister Boris Johnson has written to Cabinet colleagues telling them that his government has requested the Queen suspend parliament for longer than the usual conference season. Parliament will return for a new session with a Queen's Speech on 14 October 2019. Some Remain supporting MPs believe this move to be a ploy to hinder legislation preventing a No Deal Brexit. (Photo by Peter Summers/Getty Images)(Photo by Peter Summers/Getty Images) Peter Summers Getty Images Thousands protest after Boris Johnson requests to suspend parliament Anti-Brexit supporters continue to participate in a late evening protest in front of the Houses of Parliament in central London, Wednesday, Aug. 28, 2019. British Prime Minister Boris Johnson maneuvered on Wednesday to give his political opponents even less time to block a no-deal Brexit before the Oct. 31 withdrawal deadline, winning Queen Elizabeth II's approval to suspend Parliament. (AP Photo/Vudi Xhymshiti) Vudi Xhymshiti AP Thousands protest after Boris Johnson requests to suspend parliament London metropolitan police talk with anti-Brexit supporters in front of the Houses of Parliament in central London, Wednesday, Aug. 28, 2019. British Prime Minister Boris Johnson maneuvered on Wednesday to give his political opponents even less time to block a no-deal Brexit before the Oct. 31 withdrawal deadline, winning Queen Elizabeth II's approval to suspend Parliament. (AP Photo/Vudi Xhymshiti) Vudi Xhymshiti AP Thousands protest after Boris Johnson requests to suspend parliament LONDON, ENGLAND - AUGUST 28: A Pro-EU supporter raises her fist during a protest outside the Houses of Parliament on August 28, 2019 in London, England. British Prime Minister Boris Johnson has written to Cabinet colleagues telling them that his government has requested the Queen suspend parliament for longer than the usual conference season. Parliament will return for a new session with a Queen's Speech on 14 October 2019. Some Remain supporting MPs believe this move to be a ploy to hinder legislation preventing a No Deal Brexit. (Photo by Peter Summers/Getty Images) Peter Summers Getty Images Thousands protest after Boris Johnson requests to suspend parliament LONDON, ENGLAND - AUGUST 28: Pro-EU supporters protest outside the Houses of Parliament on August 28, 2019 in London, England. British Prime Minister Boris Johnson has written to Cabinet colleagues telling them that his government has requested the Queen suspend parliament for longer than the usual conference season. Parliament will return for a new session with a Queen's Speech on 14 October 2019. Some Remain supporting MPs believe this move to be a ploy to hinder legislation preventing a No Deal Brexit. (Photo by Peter Summers/Getty Images)(Photo by Peter Summers/Getty Images) Peter Summers Getty Images Thousands protest after Boris Johnson requests to suspend parliament LONDON, ENGLAND - AUGUST 28: Pro-EU supporters protest outside the Houses of Parliament on August 28, 2019 in London, England. British Prime Minister Boris Johnson has written to Cabinet colleagues telling them that his government has requested the Queen suspend parliament for longer than the usual conference season. Parliament will return for a new session with a Queen's Speech on 14 October 2019. Some Remain supporting MPs believe this move to be a ploy to hinder legislation preventing a No Deal Brexit. (Photo by Peter Summers/Getty Images)(Photo by Peter Summers/Getty Images) Peter Summers Getty Images

"He’s broken the law, is not fit to hold office and along with this disgraceful government must be held to account.

“Just look at the contrast with our Labour party – the only serious party of government on offer."

It comes after Sir Keir vowed to "get Boris Johnson back in parliament" to hold him to account over Brexit.

He told delegates: "It was obvious to everybody that not only was shutting down parliament at this crucial time obviously, the wrong thing to do, we should be sitting each and every day to resolve this crisis."

The government said it would appeal the decision in the UK Supreme Court, with a hearing scheduled to take place next Tuesday.

A spokesman said: "We are disappointed by today's decision, and will appeal to the UK Supreme Court.