"Studying the Bible as literature does not amount to 'establishment of religion.' "
Probably  it does not.  But a legitimate course would be a survey of sacred literature that included the literary devices found in samples from several faith traditions.