Gay rights and religion clash at Supreme Court