There were emotional moments as members of the European Parliament backed the terms of the UK’s exit.