Judges will rule on whether trans women should be considered female under the 2010 Equality Act