Understand, but what is not legal about it. They can’t do anything to the student without the legal measures to penalize the enabling or in most cases parents who have no effective control. It’s not like they have a job and have to be there instead of instilling discipline in their kids.
If the parents have no effective control, how can removing them from welfare roles compel their children to attend classes?