Logical solution isn’t wholesale abuse of the Constitution. Solution is requiring proof of legal residence to conduct government business, including receiving benefits. Have a kid and you’re in the US illegally. Kid is a citizen, and is welcome back in the US when he’s 18 — till then, family gets deported.
Besides, most immigrants — legal or illegal — work like dogs, much harder than Americans. The immigrant welfare queen is mostly a racist myth.