Easy solution. Control the borders, then let the Labor Department set immigration quotas based on vacant jobs.
If you're a software engineer, or a bricklayer, or a machinist, or a nurse, etc. we don't care where you're from or what color your skin is- come on in! We got jobs- lotsa jobs. Take your pick!
Not qualified in a job we need right now? Sorry, can't use you. Better luck next year.
Not easy. The job market is very dynamic, moves fast, changes fast. Any government bureaucracy is slow and would be managing immigration for last years fad.
Better to have no quotas, but pass laws that no immigrant, legal or illegal, gets welfare (by whatever name). Then only workers will come here and not parasites. The parasites already here are a much bigger problem than hard workers even if they compete with me for a job.