It's a double whammy. They are trying to make kids take what is essentially a military or public service oath, and do so by swearing to God. Failure to make this oath keeps you from graduating. I have seen comments that the politicians are working on dropping the "so help me God" part of the oath, as that might cause the most difficulty for them if not make the law completely unenforceable. Even without that it's troubling.
Look at what is broken in you, and you will understand what is broken in the world.