Engineering benefits from enormous network effects. American engineers are better off if all the engineers in the world move here. The industry goes where the engineers are. It's not because the valley has few engineers that it pays high salaries, it's because it has many engineers, and the high paying companies locate here to benefit from the network effects.
It can still be better for engineers though, if they are in the top third of desired immigrants from a jobs perspective.