Ban on puberty blockers is lawful, rules High Court judge