"Stupid laws"?
You realize that all nations have immigration laws, right?
Yes, but ours are especially stupid, given we are a country of immigrants.
Here's the problem.
Before you knuckleheads got all worked up about immigration, migrants would come up here by themselves, work a few month, and live in their home countries very well.
But then you got all upset about "too many brown people" and made crossing the border more of a hassle. So instead of coming up here for a few months, they come up to stay and bring their families with them.
The other particularly idiotic thing you did was make employers responsible for enforcing workplace eligibility. This is like letting the foxes guard the henhouse.
Now, if you wanted a sensible law, it would be as follows
1) Require a National ID, based on Social Security Numbers. Only citizens and legal immigrants can get SSNs, so use that as your base, but have a thumbprint and a picture on file to go with it.
2) Create guest worker programs to meet the country's legitimate labor needs. Expand H2A and H2B visas to more than a handful.
3) Heavily fine employers who are still hiring undocumented immigrants. Not just farmers and sweatshop owners. But the rich yuppies who can't be bothered to raise their own kids, the guy who hires a truckload of day-laborers to finish that DIY project that turned out to be harder than it looked.
4) Adequately staff USCIS and the immigration courts where cases are not sitting in someone's inbox for seven years.
5) Identify countries where the immigrants are coming from and spend money alleviating economic issues there. Take for example, Venezuela. Lots of them came here because we spent 20 years waging economic warfare on them for picking a government we don't like