FILE - In this Nov. 10, 2020, file photo the sun rises behind the U.S. Supreme Court in Washington. (AP Photo/Alex Brandon, File)

WASHINGTON (AP) — The Supreme Court ruled on Thursday that the city of Philadelphia violated the Constitution by limiting its relationship with a Catholic foster care agency over the group's refusal to certify same-sex couples as foster parents.

The justices came down unanimously against Philadelphia and for Catholic Social Services.

“The refusal of Philadelphia to contract with CSS for the provision of foster care services unless it agrees to certify same-sex couples as foster parents cannot survive strict scrutiny, and violates the First Amendment,” Chief Justice John Roberts wrote.

Catholic Social Services is affiliated with the Archdiocese of Philadelphia. The agency has said that its Catholic beliefs prevent it from certifying same-sex couples as foster parents.

Philadelphia learned in 2018 from a newspaper reporter that the agency would not work with same-sex couples. The city has said it requires that the two dozen-plus foster care agencies it works with not to discriminate as part of their contracts. The city asked the Catholic agency to change its policy, but the group declined. As a result, Philadelphia stopped referring additional children to the agency.

Catholic Social Services sued, but lower courts sided with Philadelphia.

[Why do Catholics make up a majority of the Supreme Court?]

The latest from america

Speakers from several academic disciplines highlighted the need for the international community, governments, civil society and religious communities to address the myriad of issues surrounding machine learning.
Gerard O’ConnellOctober 26, 2021
iStock
This is no trick and all treat: We’ve compiled a list of the best and the worst Catholic Halloween costumes to help you decide on your disguise.
Sarah VincentOctober 26, 2021
An honest conversation on climate change, the upcoming COP26 meeting and what Catholics can do to respond to Pope Francis’ calls for ecological conversion.
Sebastian GomesOctober 26, 2021
Bishop Michael F. Burbidge of Arlington, Va., carries the monstrance through the crowd for eucharistic adoration outside.
The view that the Eucharist is a symbol of Jesus has alarmed many U.S. bishops because belief in the real presence of Christ in the consecrated host is a central church teaching.