A confidential settlement has been reached after legal action over online and cancelled teaching.