The division bench of justices Raja Vijayaraghavan V and KV Jayakumar was hearing a plea filed by a transwoman