Transgender woman suffers from disability, Brooklyn judge rules