The pharmacy chain denies wrongdoing, but is settling anyway.