The retailer will settle allegations that its pharmacies illegally filled thousands of invalid controlled-substance ...