GIP affiliate to buy Medallion Pipeline for nearly $2 billion