European Parliament approves contested migration reform