THE UK Government will challenge Brexit legislation passed by the Scottish and Welsh devolved administrations.

Bills passed in the Scottish Parliament and Welsh Assembly last month have been referred to the Supreme Court.

The decision has been taken by the Attorney General and the Advocate General for Scotland, the government's senior law officers.

READ MORE: Theresa May set to launch legal bid to stop Nicola Sturgeon's Brexit Bill becoming law

The court is being asked to rule on whether the legislation is constitutional and within the powers of the devolved legislatures.

Attorney General Jeremy Wright QC MP said: "This legislation risks creating serious legal uncertainty for individuals and businesses as we leave the EU.

"This reference is a protective measure which we are taking in the public interest.

"The Government very much hopes this issue will be resolved without the need to continue with this litigation."

READ MORE: Theresa May set to launch legal bid to stop Nicola Sturgeon's Brexit Bill becoming law

The Scottish and Welsh Governments brought forward the unprecedented legislation after a row with Westminster over the return of devolved powers from Brussels once Britain leaves the EU.

Ministers in both Cardiff and Edinburgh have repeatedly branded the UK Government's EU Withdrawal Bill a "power grab" which threatens devolution.

The Scottish Parliament's Presiding Officer has previously ruled the Scottish EU Continuity Bill is outside Holyrood's competence - although SNP ministers say they are confident it is not.

Advocate General for Scotland Lord Keen said: “By referring the Scottish Parliament’s Continuity Bill to the Supreme Court, we are seeking legal certainty as to its competence.

READ MORE: Theresa May set to launch legal bid to stop Nicola Sturgeon's Brexit Bill becoming law

"Given the Presiding Officer’s view at introduction that the Bill was not within the legal scope of the Parliament, we believe it is important to ask the Court to provide absolute clarity. In doing so we are following the process set out in the Scotland Act 1998.

"Particularly in the run up to Brexit, it is vital that we avoid legal uncertainty in our statute book.”

Speaking about the move, minister for UK Negotiations on Scotland’s Place in Europe Michael Russell has today reiterated that Scottish Ministers are satisfied that the Continuity Bill is within the legislative competence of the Scottish Parliament.

Mr Russell said: “The Continuity Bill was passed by 95 votes to 32 in the Scottish Parliament, that is an overwhelming majority. Scottish Ministers are satisfied that the Bill is within legislative competence.

“The Lord Advocate will be arguing in the Supreme Court that it is within the powers of the Scottish Parliament to prepare for the consequences for devolved matters of UK withdrawal from the European Union.

“Our Continuity Bill is an important and necessary piece of legislation to prepare Scotland’s laws for Brexit while protecting the powers of the Scottish Parliament that people voted for.

“The Scottish Government has made clear it cannot recommend the Scottish Parliament consent to the Withdrawal Bill in its current form. 

“Alongside the Welsh Government, we have always said our preference would be to reach an agreement with the UK Government to amend the EU Withdrawal Bill to respect the powers of the devolved administrations and both Governments are ready to  continue meaningful talks to further discuss potential solutions.

“While the Scottish Government is not opposed to UK-wide frameworks in certain areas when these are in Scotland’s interests, this must only happen with the agreement of the Scottish Parliament.”