The resolution agreements, which the agency called "illegal," were reached under previous Democratic administrations.