I agree with Rene that all the sentences seem gramatically correct to me.
That said, I would use the first version of sentence #1 and the second version of sentence #2.
In both cases, I think the point is to describe the most important point first.
In the first sentence, the key point is that these people entered the country. There are lots of people without legal documents, but that wouldn't matter if they hadn't entered the country.
In the second example, the key point is not that the people came into the United States (lots of businesspeople and tourists do that all the time), but that they are fleeing terrorism.
So... put the most important point first. That's my advice :)