Building up domestic industries is a win for everyone and that goes for any country. Send your best workers to Silicon Valley and your nation is already suffering a drain on talent.
For many countries, blocking U.S. Internet services and substituting 80%-of-the-way domestic alternatives does just that in terms of boosting employment. It might not be the same legal framework, but if you are advocating for putting co-national workers first at all costs, then that's very much an option.
Those countries are welcome to try it and it might even be good for them, but I doubt they want to lose access to US services. That's what leverage is. If those countries have leverage then let them use it.
I think in the long run we should be able to come up with systems at the national and international levels that are fair to both local workers and immigrants.
Ok, so let's deal with the current H-1B program now instead of waiting another 4 or 8 or 16 years or however long some people would like to delay it.
Note that I am in favor of better conditions for workers, more progressive taxes, UBI, free higher education, some forms of fair-trade arrangements, you name it. What I am not for is "no foreigners until unemployment is strictly at zero". I think in the long run we should be able to come up with systems at the national and international levels that are fair to both local workers and immigrants. In the context of the current administration, though, I don't see us getting that, I see a lot of scapegoating, a lot of rash policies and an international industry supported by an international workforce, eventually either dying, fragmenting or leaving the U.S.