The deal, which is expected to close by year's end, is worth $8.2 billion.