Legislation to trigger a pre-Christmas general election has cleared the Lords and will now go forward for Royal Assent to become law