Of course there are tradeoffs. A programmer who is much better than me has advantages in quality (assuming you are much better, in my biased opinion I'm great)
It's already happening to a degree. There a number of what you might call "reluctant Trump voters" where I work. The most frequent (and often only) argument you'll hear from them in favor Trump is around immigration and H1-B visas. You'll also notice that the Democrats in the U.S. who are surprisingly quit around Trumps efforts to reduce H1-B issuance.
I'd be willing to bet that unrestricted competition for a limited number of high-paying jobs in the developed world would fuel the Nationalist parties and movements that we've been seeing more of in the U.S. and Europe.
But having classes of people who live in the country but have special restricted rights and never become full citizens worries me.
I wish we could move away from the idea that citizenship is a reward for following the rules and instead consider that making people citizens is a benefit for (maybe even vital to preserving) society.
Someone in the Philippines learning Python on Khan Academy today could very well be competitive for a senior engineering job in 10 years if the career path were possible.
I've met countless skilled technical people who could not a get job at XYZ company simply due to visas, not qualifications. Now working for these companies can be a real possibility.