There’s a third option besides unlimited H1Bs, etc and completely restricted market — which is preferencing US natives.
And this problem isn’t reserved to CS grads — but represents 2/3rds of prospective middle class US citizens experiencing a worse outcome. Which contrary to your glib dismissal, is politically unstable.