Supreme Court to take up same-sex marriage issues