Nearly 4,000 in Mass. benefit from settlement