The attorney general’s office said the alleged failure cost victims millions in dollars.