There is an enormous and visible difference between “not getting a visa” and “getting a visa, relying on it, moving to a new country, and being told that the legal system of the new country has turned to slime and your visa may or may not still be valid”. I’d be interested in hearing about when other countries have done that, if you know of any.
That’s fine. All those H1Bs will go back to their home countries, work for the same companies at a fraction of the salary and instead of paying taxes and rent and other expenses in the US will pay in their home countries.
And when they are laid off, or drop off to start their own companies, those companies will be based in their home countries instead of in the U.S.
I think this is a great and moral plan to reverse the brain drain the U.S. has been benefiting from at the expense of other countries for decades.
The other countries could have tried less corruption and fewer palaces and yachts for their nobility. And a few more opportunities to earn a decent lifestyle with nothing, but a brain and hard work.
No countries readily jail people who have the legal right to enter that country as the U.S is currently doing, but if you wish, a reciprocal policy for U.S citizens traveling abroad can certainly be arranged.
Having a visa doesn't give you the right to enter. I don't think permanent residency does either.
It's always at the discretion of the immigration officer and there's no recourse if they don't let you in.
Personally, I don't think it's generally reasonable to jail at entry when denying entry is an option. The case where the UK tourist was denied entry to Canada from the US and then was jailed in the US is a case where denying entry isn't really possible, because if neither side of a land border will allow entry, what do uou do... but then it shouldn't have taken more than a couple days to make arrangements for her to fly home on her own dime.