Media playback is unsupported on your device Media caption The moment the government's attempt to take the UK out of EU law passed its first parliamentary test

The government's bid to extract the UK from EU law in time for Brexit has passed its first parliamentary test.

MPs backed the EU Withdrawal Bill by 326 votes to 290 despite critics warning that it represented a "power grab" by ministers.

The bill, which will end the supremacy of EU law in the UK, now moves onto its next parliamentary stage.

Ministers sought to reassure MPs by considering calls for safeguards over their use of new powers.

Prime Minister Theresa May welcomed the Commons vote in the early hours of Tuesday morning, saying the bill offered "certainty and clarity" - but Labour described it as an "affront to parliamentary democracy".

Seven Labour MPs defied Jeremy Corbyn's order to oppose the bill - Ronnie Campbell, Frank Field, Kate Hoey, Kelvin Hopkins, John Mann, Dennis Skinner and Graham Stringer. No Conservatives voted against it.

Having cleared the second reading stage, the bill will now face more attempts to change it with MPs, including several senior Conservative backbenchers, publishing a proposed 157 amendments, covering 59 pages.

Previously referred to as the Great Repeal Bill, the EU Withdrawal Bill overturns the 1972 European Communities Act which took the UK into the then European Economic Community.

It will also convert all existing EU laws into UK law, to ensure there are no gaps in legislation on Brexit day.

Critics' concerns centre on ministers giving themselves the power to make changes to laws during this process without consulting MPs.

The government says it needs to be able to make minor technical changes to ensure a smooth transition, but fears were raised that ministers were getting sweeping powers to avoid parliamentary scrutiny.

More than 100 MPs had their say during the two-day second reading debate.

Media playback is unsupported on your device Media caption "This isn't the end of this bill, just one very early stage"

Labour, which denounced the "vague offers" of concessions, mostly voted against the bill.

Shadow Brexit secretary Sir Keir Starmer said the bill was a "naked power grab" by the government, adding that "this is a deeply disappointing result".

He said: "Labour will seek to amend and remove the worst aspects from the bill but the flaws are so fundamental it's hard to see how this could ever be made fit for purpose."

Lib Dem Brexit spokesman Tom Brake said MPs who backed the bill should feel "ashamed".

"This is a dark day for the mother of parliaments," he added.

Summing up the Commons debate, Justice Secretary David Lidington had said some criticism had been "exaggerated up to and beyond the point of hyperbole".

He said the bill would "enable us to have a coherent and functioning statute book" on the day the UK leaves the EU.

'Considerable improvements' sought

BBC political editor Laura Kuenssberg said Conservative MPs concerned about the legislation had already tabled a number of amendments to "remove the excesses of the bill" and to "make considerable improvements".

These include limiting the use of delegated powers, giving Parliament the "final say" on the EU withdrawal agreement and restoring the EU Charter of Fundamental Rights.

One MP told the BBC: "We hope MPs from all parties who share our concerns and aims to make the bill fit for the purpose of delivering a smooth Brexit will add their names."

SNP MPs, who also voted against the bill, said powers over devolved issues would be seized by Westminster as they were returned from Brussels.

But Mr Lidington denied this, predicting it would result in a "significant increase" in the powers exercised by the devolved administrations.

The bill will now receive line-by-line scrutiny in its committee stage.

MPs voted in favour of the government's proposed timetable for debating legislation - by 318 votes to 301 - guaranteeing 64 hours of debate over eight days.

But Mr Lidington said the government was "willing to consider" extending the allocated time.

The Bill's committee stage will take place when MPs return to parliament after their party conferences.