One of the issues is conflation of IT jobs and High Tech jobs. Those making laws don't understand the difference -- they are all "computer jobs" to them. IT does not require immigrant labor. Companies such as Infosys and Tata don't need to be operating in the US. There are plenty of US workers available to do the job.
But High Tech is different. High Tech needs the best in the world, not the best in the US. The US leads the world in tech not because the best ideas were all American but because the best people in the world immigrated to the US. Stopping this will be ruinous to American prosperity.
The seminal research paper that kicked off the AI revolution (titled "Attention is all you need") was written by 2 Indians, 1 German, 1 British Canadian, 1 Pole, 1 Ukrainian, and 2 US born people. These people came to America, worked together and changed the world as we know it. Why would we want to stop it? Has this immigration undercut Americans? Far from it. These immigrants are the lifeblood of the tech industry, and their innovations create jobs.