Transgender child wins civil case