US Supreme Court declares same-sex marriage legal