AMS have given the UK Government the go-ahead to pass its Brexit Bill - despite concerns it will result in a loss of devolved power.

When the EU Withdrawal Bill was first presented last year Welsh ministers claimed it would result in powers over devolved areas such as farming returning to Westminster rather than Cardiff when the UK leaves Europe next year.

But last month the two governments had come to an agreement, which will result in the UK Government holding onto devolved powers currently held by the European Union for up to seven years while new UK-wide frameworks are put in place.

And this evening the Assembly voted 46 to nine to pass a Legislative Consent Motion (LCM), which gives Westminster consent to pass the bill.

Speaking during First Minister’s Questions Carwyn Jones said: “We, in government, have negotiated hard to get the best deal for Wales, which we believe we have achieved.

“What happens in Scotland and England is a matter for Scotland and England.

“That is what devolution is about.”

Speaking in the Assembly earlier today, finance secretary Mark Drakeford, who has been acting as the Welsh Government’s Brexit minister, said: “Our ambitions for devolution are by no means exhausted by the agreement we have reached.

“But our objective from the beginning has been a withdrawal bill that delivers stability and certainty for businesses and citizens about the rights, obligations and responsibilities that will exists at the point at which we leave the European Union.

“We have defended and entrenched our devolution settlement.

“We have provided for the successful operation of the United Kingdom after Brexit.

“We have delivered a good deal for the Assembly and a good deal for Wales.”

But Plaid Cymru slammed the agreement. Leader Leanne Wood said it would “weaken the Assembly”.

And AM Adam Price said: “If we pass this motion today, we are accepting the principle that this place is no longer sovereign.”

But Conservative AM David Melding urged AMs to approve the motion, saying: “I do believe genuinely that this whole process of difficult negotiation has been to the credit of the UK Government and also to the Welsh Government. This is what we expect in difficult constitutional areas, which many of us never wanted to occur and many of the challenges have been unanticipated.

“But there has clearly been constructive working on both sides and this has borne fruit.”

And Ukip Wales leader Neil Hamilton said there was “every constitutional advantage and practical advantage for the people of Wales” in passing the motion.

The Scottish Government refused to pass an LCM earlier today. But such a motion is not legally binding, meaning the UK Government can pass the Brexit Bill without it.