Legislation now heads to the House of Lords where it is expected to have a rough ride