The 9th circuit's ruling is unconstitutional on a state level, federal level, or what have you. Please read all state constitutional matters concerning the separation of church and state.
Any curricula taught or presented in a public school-- other than the presentation of fictional prose or poetry-- must be objective material designed for the purpose of learning-- i.e the acquisition of knowledge.
Any material that does not comply to those criteria is simply religion.
From Merriam-Webster Online Dictionary:
religion def: a cause, principle, or system of beliefs held to with ardor and faith
Anything not complying to the principles or constructs of objective learning is based on religion, or a set of beliefs or attitudes. Such curricula is the subject of dogma or a specific agenda not relating to objective knowledge.
The public school system is not in the business of teaching dogma, and it is strictly unconstitutional to advance one ideological agenda over another.
ARTICLE 16, SECTION 5 OF THE CALIFORNIA STATE CONSTITUTION PUBLIC FUNDS; AID OF RELIGIOUS PURPOSES OR INSTITUTIONS SEC. 5:
Neither the Legislature, nor any county, city and county, township, school district, or other municipal corporation, shall ever make an appropriation, or pay from any public fund whatever, or grant anything to or aid of any religious sect, church, creed, or sectarian purpose, or help to support or sustain any school, college, university, hospital, or other institution controlled by any religious creed, church, or sectarian denomination whatever; nor shall any grant or donation of personal property or real estate ever be made by the state or any city, city and county, town or other municipal corporation for any religious creed, church, or sectarian purpose whatever, provided that nothing in this section shall prevent the Legislature grating aid pursuant to section 3 of Article XVI.(Adopted November 5, 1974)