Schools work to balance gay, religious rights