Anthem Inc. is near an agreement to buy rival Cigna Corp. for about $48 billion, two people with knowledge of the matter said. A deal would create the largest health insurer in the U.S. after almost a year of talks.