Walgreens has agreed to pay $300 million to settle U.S. prosecutors’ allegations that it illegally filled…