Judge allows student to sue school for revealing sexuality