If that is the law, it needs to be changed.

Anyone here illegally should NOT get free legal representation paid by American taxpayers.   Illegal is illegal.   Deport all illegals.   They can fight it from south of the border if they are so inclined to waste their money,