High Court judge says sanction for teacher ‘well merited’ given the case involved professional misconduct of the most serious kind