Supply and demand for labor will work itself out- prices will go up, companies will invest in efficiency, etc. People just need time to figure out the details, and the legal right to do the job.
There are going to be losers in this. No avoiding it.
Humans take time to be produced.