The problem with H-1B visas is that they are effectively golden handcuffs - tolerate whatever abuse we give you for X years and you get permanent residency.
The fix would be to allow H-1Bs to jump to any employment, not just employers capable of sponsoring an H-1B. But that creates a new problem: H-1B sponsoring employers are now spending extra time and bureaucracy just to be the welcome mat immigrants step on before getting a real job. This isn't really feasible for them.
It would be easier to more or less "just throw open the floodgates" - i.e. hand out work visas to anyone who can pass a background check and let them apply to any job a US worker can. This would immediately fix most immediately conceivable problems with restricted immigration creating a second class of worker that is cheaper to hire.
On the other hand, nobody wants immigrants anymore. There are an increasing number of people for whom their birth citizenship is the only valuable asset they have, and this sentiment is geographically distributed. It's actually more prevalent in the kinds of countries that are sending people to rich countries - i.e. ask the average Indian how they'd feel about, say, liberalizing immigration with Pakistan or Bangladesh, and they'd probably say something so racist it'd make people at MAGA rallies blush.
Of course, the reason why this happens is pretty straightforward: POSIWID. The people who benefit from immigration visas being handcuff-shaped are the same people who own the news media and are reminding people day in and day out how dangerous and awful the people they're bringing in are.
"Wait, it's all slavery?"
"Always has been."