Ah yes don't fix the problem just let it continue to get worse and worse.
This is about as realistic as Americans doing their own farming after kicking out all the Mexicans.
Few differences here between tech jobs and farming. Tech jobs are the pinnacle of earners. Harvesting/Farming is one of the lowest form of income generation. Much easier to return those high skill jobs to Americans. Higher wages only hurt the CEO and upper management, wonder why they hired cheap slave labor to begin with.
Honestly the visa holders might be in better shape.
Most of these H1B jobs were coming from India, national notorious for fraud. In fact, lying and buying credentials is so ingrained in Indian culture when tech workers were tested on their skills something like 95% were found unsuitable for IT work. So I'm not super worried about losing that "talent" to India, we've got plenty of actual talent in the USA still. For years the younger generations were told to learning programming and get a CS degree. I bet we would find more than 5% of them are capable.
Also, talk to any American tech worker who has experienced out-sourcing to India or bringing in "talent" from India via H1B and you'll hear some fun horror stories. Usually goes like this; manager wanted a bonus so he fires the team and sources Indians, usually because some consultant company contacted him with "they will work for $2 a day" promises. The replacements will either be totally incompetent from day one, sometimes they start off well until the workload is moved to new people (the people who start are actually skilled and over the course of weeks they move on to the next project and their replacements are totally incompetent.) After destroying the companies mainframe, database, software, website, etc the manager ends up firing them and begging the original team members to return to fix things.
I've heard and read dozens of such accounts. I experienced it myself. H1B's tend to suck. At best they're skilled but often suffer a noticeable language barrier and culture barrier.
There was no scheme to replace the American worker, that’s just how capitalism works.
There was, in fact, a scheme to replace the American worker with H1B. In fact, tech companies lobbied for H1B in the 1990's then expanded it. In order to say they couldn't find American workers they'd use all kinds of schemes; demanding levels of experience for insultingly low wages, running the ad in obscure news papers in the middle of bumfuck USA so no one would see them, etc. Oh, and then recruiting companies from India got involved.
If it’s literally cheaper to import labor, it’s not objectively the companies fault
I could literally replace every single American right now regardless of their age with someone for India. That replacement will cost less money. Why aren't we replacing all Americans with Indians? Indian retiree's get like $3 a month for social security, verse $1500 for Americans. Why don't we replace all the American's drawing SS with Indian elderly people and pocket the difference?
We have to find a practical balance between our society thriving and corporate greed.

It's all trash. They should've just charged us to continue to maintain win 7. I'd have bought another license for an additional 10 years of regular updates.