The case is one of several percolating in federal courts that test the boundaries of a religious exception. The stakes are enormous, affecting schools and possibly nurses at religious hospitals.