The governing board of a school district, a county board of education, or the governing body of a charter school shall not refuse to approve the use or prohibit the use of any textbook, instructional material, supplemental instructional material, or other curriculum for classroom instruction or any book or other resource in a school library on the basis that it includes a study of the role and contributions of any individual or group consistent with the requirements of Sections 51204.5 and 60040 [requiring the accurate portrayal of LGBT people and racial minorities], unless the study of the role and contributions violates Section 51501 or 60044 [prohibitions on materials that “reflect adversely upon persons because of their race, sex, color, creed, handicap, national origin, or ancestry”].