The US Supreme Court will rule in the next few months on whether gay couples have a right to marry across all states.