Aetna Inc. agrees to buy Humana Inc., in a deal poised to be the biggest ever in the health-insurance industry.