Jesus said to treat foreigners as citizens, so why are foreigners such a big topic of hatred for Christians?

Jesus said "Do not oppress a foreigner; you yourselves were foreigners, because you were foreigners in Egypt."

Also, "The foreigner residing among you must be treated as your native-born. Love them as yourself, for you were foreigners in Egypt. I am the Lord your God."

So then why does it seem like the main reason Christians voted for Trump was to get rid of foreigners? This is literally against the teachings of Jesus Christ.

Updates
1 y
For clarification, I'm talking about the US, not Europe which I agree should have stricter immigration issues. The ones we would be deported would mostly be Mexicans, who for the most part are good people.
Jesus said to treat foreigners as citizens, so why are foreigners such a big topic of hatred for Christians?
Post Opinion