The House of Commons has voted to repeal immunity for Troubles-era offences contained in the Legacy Act, and its bar on new civil cases.