McKesson, the largest drug distributor in the U.S., has agreed to pay $350 million to settle a class action alleging it fraudulently hiked the price of more than 400 medications, including Lipitor, ranked by some indices as the world’s top-selling drug as of September.