Up to 13,000 benefit claimants could receive compensation payments of up to £5,000 after the DWP settled a major court claim.