It’s an inevitable outcome of the hostile and unpredictable enforcement of rules that can change whenever trump has a bad day
The only constant is that things are always changing, and getting more hostile for foreigners. It's disingenuous to blame Trump when this is what U.S. voters chose.
Trump legitimately campaigned on being cruel to illegal migrants and refugees. He also campaigned on reducing immigration in general. To that extent, you are correct inasmuch as Trump's H1-B policies were promised. (MAGA wasn't subtle [1].)
Where I think we can legitimately say this is MAGA versus Republicans is in the reverse brain drain. America in the 1950s was a destination for top minds. Ameirca in the 2020s is not. Part of that is due to remote work. Part due to us not being in the wake of a world war. But part was due to an explicit policy to attract the most ambitious to America, and then to encourage them to stay.
[1] https://m.economictimes.com/news/international/world-news/wo...