The Pennsylvania attorney general’s office has announced a settlement with financial services company Moody’s over misleading credit ratings.

The deal is going to net Pennsylvania nearly $20 million, with the money being distributed across several agencies that were affected by the deceptive ratings.