I just saw this in my FB feed. A male student taking a university course asked not to work with female students due to religious beliefs and the prof denied his request but the university forced the prof to comply.
Gosh what a sticky situation. While I believe in religious freedom and respecting beliefs, I think I would side with the prof in this case.