Being anti-emigration seems to be winning in the minds of pretty much every rich nation right now. But it is just bad policy:
https://www.aeaweb.org/articles?id=10.1257/jep.25.3.83
People said the same thing about the Irish and the Italians in the US. It was wrong & racist then and it is wrong & racist now.