a) US companies will hire those remote workers, causing cash to flow out of the US
b) companies will set up in those countries to compete with the US companies, but without the burden of the US' skyrocketing salaries.
This happened in manufacturing: the US had high salaries, so costs of manufacturing were too high, so the US started outsourcing to Asian, and now the manufacturing industry in the US is so bad that companies can actually afford to hire US manufacturing workers again.
The solution: when wages skyrocket, bring in foreign engineers. When wages are depressed, don't.