It ought to be a law that a school can demand a parent or approved guardian stay through the class day with problem children. And control the child, and keep the child on target for class work.
The law you’re looking for allows homeschooling.