Doctors can decide if children are able to consent to puberty blockers, say judges