"A class on the bible"? You are utterly oblivious to what has been presented to you regarding the Establishment Clause, right?
Maybe a class on hewing Arks out of cubits of gopherwood?
Holding an elective class does not "establish" a religion.
You need to make that case before the courts. The problem you have is that using terms such " teaching the bible" tends to prejudice your argument.