The settlement follows the Supreme Court’s unanimous ruling that the city of Philadelphia should not require Catholic Social Services to provide foster-care referrals for same-sex couples.

The city had cut off funding for the archdiocesan agency, citing an anti-discrimination rule. The archdiocese contested the decision, arguing successfully that the policy would force the agency to violate its own religious principles.