It’d be easier to go after the root cause of illegal immigration- employers who hire illegal immigrants.
Force the hand of the employers and the demand to come here illegally is gone.