Supreme Court to hear legalisation on gay rights