Up to 13,000 Universal Credit claimants could be due compensation after the DWP settled a court claim.