Always the weak blame the immigrants and then vote for the robber barons against their own interests.
I don't think that's what's happening here. It's pretty clear importing thousands (10s of thousands?) people into an area has an effect on the local residents that's not good.
There is nothing "weak" about standing up for your own economic interests. The H1B program has largely been based on a fiction--using a handful of superstars as marketing cover for tens of thousands of mid-skill developers. But with AI now coming for everyone's job the pretext of a "skills shortage" is unsustainable.