Teachers strike was legal and justified - judge : comparemel