Supreme Court takes on new clash of gay rights, religion