A war of the amici is under way as the California Supreme Court readies itself for what could become one of its most controversial cases in years.

Forty groups have filed amicus curiae briefs, either individually or jointly, in a case that pits doctors’ rights to religious expression against patients’ rights to treatment without discrimination.