Same-sex marriage cases wind their way to Supreme Court as political climate changes