Brookfield Asset Management through its infrastructure business will buy Colonial Enterprises in a deal that gives the refined-oil products pipeline firm a roughly $9 billion enterprise value.