Head teacher says 'mass arrests' are a possibility after High Court bans LGBT lesson protests