Supreme Court takes up a major gay rights case