There was a growing backlash in Europe and the US about the numbers of immigrants entering their countries.