TransCanada, the company behind the Keystone XL oil pipeline, said it will buy Columbia Pipeline Group for $10.2 billion.