The problem would disappear, but they would disappear to India or one of the other offshoring countries. I however agree that the pay needs to be AT LEAST the median salary for the position to avoid abuse.
Tax the American companies that focus their hiring efforts abroad. Just another tariff. They will generate the people they need in this country by lunch time.
For companies like Google, H1B isn’t about bringing into US, it is just an expensive way to satisfy their US hiring hunger.
That difference can be understood by imagining that H1B isn’t foreign devs, instead it is devs grown in a jar by the State Department - Google would buy them the same.