Prohibiting same-sex couples from marrying is a clear case of discrimination on the basis of sexual orientation, the plea says.