Gender identity is "directly linked to an individual's personal existence, making it a significant legal good," the court has said in its judgment.