The school and other experts advised against the transition, but Justice David Williams praised the parents.