Please read the article before responding. The article says, quite clearly, that CPS dropped the case within weeks and that Texas family law was updated, so CPS cannot even bring cases like this against parents.
The problem is that Texas's criminal law was not updated, and the cops/prosecutors made the parent pick between a crime that had a 2-year minimum prison term OR taking a plea for 64 hours of community service (and other things, like writing an apology letter, etc).
This wasn't a CPS problem. It was a cop abusing their authority and a prosecutor who didn't drop the charges. Plus a hugely abusive plea system in US criminal cases (which is a whole huge discussion in its own right).