When I use 'he' I am truthfully reflecting my perception of the subject's biological sex.
Do I see males as women? Truthfully - never.
If I am compelled to refer to a male using 'she', I am compelled to lie.
The judge compelled Maria to lie (imply she perceives the defendant as female by forced use of female pronouns) as surely as if she had been compelled to misrepresent any other objective characteristic she observed about her assailant.