Their lawyers say details of the agreement will remain private, ending a case that has dragged on since 2020.