Transgender boy wins right to live as himself