The doughnut chain has reached a settlement in a class action lawsuit following a data incident in 2024.