As a family law attorney and as a practicing Catholic - and as someone who was once accused by my husband's ex-wife in a court declaration of having "Catholic paraphenalia strewn around my home" - I have something to say.
First of all, the judge has no legal basiss under the First Amendment to make this order. In California, a judge is generally going to say, "Well, Mom, when she is with you, you take her to temple, and when she is with Dad, you take hre to church."
And why? Listen, if religion is that important to you, marry in the faith. And realize that someone who converts to marry you is not likely wedded to the faith.
Frankly, I see both of these idiot parents as playing the religion card as a control mechanism in a divorce. And, as such, both are violating the 2nd Commandment.
Chances are good this kid emerges with no faith. Congratulations, Mom and Dad.