European Parliament narrowly endorses EU migration reform, moving it closer to the finish line