But at the end of the day, the President's job is to protect the American people first and foremost.* Visitors and immigrants get protection under law, but, not at the expense of the American people. Safety, economic prosperity, and job security might fall into that category. On that reasonable minds can debate.
I think there's a lot of nationalism vs. pluralism going on right now. Brexit is one example; U.S. immigration and foreign policy is another.
(* It's actually not. It's to "defend and uphold the Constitution". Which does speak to citizens vs. non-citizens. But President Obama and others say things like, "I have no greater responsibility than protecting the American people." So anyway: nuance.)