For what it's worth H1Bs were being misused by indian tech companies who got the majority of them [1] because the salary requirements haden't been updated for decades [2]
That meant the ability to undercut american workers.
I don't think there is anything racist about that.
[1] https://www.economist.com/united-states/2017/02/09/h-1b-visa...
[2] https://alj.artrepreneur.com/h1b-visa-crackdown/#:~:text=Cur....