Let them build their own companies to compete. Keep them out of the USA.
American companies can not survive without cheap computer programmers on H-1B visa’s. If they stop importing H-1B people, many software company business will shift abroad. If that happens, we lose the tax revenue, and ALL the jobs in the entire company. Even a software company has other employees other than programmers, such as accountants, payroll, human resources, management, buyers, janitors, etc. All those jobs disappear if the company can not operate profitably.
There are valid reasons why companies hire H-1B people.