The Supreme Court on Thursday said that Philadelphia violated the First Amendment when it froze the contract of a Catholic Foster Care Agency that refused to work with same-sex couples as potential foster parents because the agency believes that marriage should be between a man and a woman.