Culturally, the context of these verses are significantly different from today's situation. Borders were more fluid and there was no massive WELFARE system that the aliens felt they were entitled to. Second contextural aspect was that they were there within the bounds of the law at that time, yet the sovernity of the country they were in was supreme, not being perverted as in today's setting.
From the New Testament Letter to the Hebrews we hear, "Do not neglect to show hospitality to strangers, for by doing so some have entertained angels unawares."
An individual who enters your home in the middle of the night is a thief, a lawbreaker, not subject to this passage. Showing hospitality to a 'stranger' does not even come close to today's situation as in most instances these 'strangers' were often just passing through the area on a pilgrimage or business trip. Remember too, there were no Motel 6s with their lights on, and travelers relied upon the hospitality of the locals.
Amen. If we treated the aliens like they were treated in the Old Testament, then the aliens would not get all of the education, healthcare, and other freebies that they currently take from us. Also, the politicians who are promoting amnesty are biblically immoral because they are knowingly breaking the promise that they gave to the people who have contributed to Social Security. The pols KNOW that the new aliens will even more quickly bankrupt the system. Breaking promises is biblically immoral. If the aliens stay in the USA, then no more taxpayer freebies. Make them pay their way. I believe that would be biblical because that would be fair. Help the stranger? Yes. Do so only by breaking previous promises? No.