The European Parliament gave final approval to Britain's divorce from the European Union on Wednesday, paving the way for the country to quit the bloc on Friday after nearly half a century and delivering a major setback for European integration.

After an emotional debate during which several speakers shed tears, EU lawmakers voted 621 for and 49 against the Brexit agreement sealed between Britain and the 27 other member states last October, more than three years since Britons voted out.

Thirteen lawmakers abstained and the chamber then broke into a rendition of "Auld Lang Syne," a traditional Scottish folk song of farewell. Britain's 73 departing EU lawmakers headed for an "Au Revoir" party in the EU chamber after the vote.