Excellent points.
Now regarding morality, I would suggest that ensuring healthy standards of morality—whether or not premised upon religious doctrines—is a shared responsibility of parents/guardians/caregivers & certainly also the education departments too—furthermore by extension these shared responsibilities are that of those politicking bureaucrats behind the respective education systems policies.
Thus it would be false to blame all responsibility solely on the parents/guardians/caregivers.
Obviously as education departments & policy makers are inescapably directly & indirectly involved—& to a significant degree—with influencing the development of school children.
Lastly, regarding the question: "Well, how do you all solve this dilemma?"...
...

I would suggest we focus less on the resulting manifestation of negative *effects and instead we set about reorienting our attention towards correctly identifying & properly resolving the primary underlying causes of resulting effects thereof. I'll add, it may be wise to consider that sh_t tends to roll downhill...by which I mean an allusion to the fact that parents/guardians/caregivers & education department employees aren't the ones who are in primary positions of social nor policy making control....