The district said the settlement came down to basic math: Pay the teacher to resign and avoid even more disruption.