Yes, because you put your kids in danger so of course it is legal. Your children could have been seriously injured or killed. I am always reading about a car accident where a child was ejected from the vehicle due to lack of restraints.
You should not have been driving due to several factors. Why did you take the risk? You had no business behind the wheel of that car, expecially with kids.
All you can do is improve your life, pay your fines, get your license back, get insurance, and prove to the courts you should be entitled to at least visits with the kids.
Focus on taking seeing your your children and being a mom to them instead of questioning the legaility of what was done.