The settlement stems from a lawsuit filed by two former students who say they were repeatedly sexually assaulted by their middle school math teacher.