GlaxoSmithKline has agreed to pay up to $2.2 billion to settle 80,000 Zantac lawsuits.