TC Energy formally ends Keystone XL pipeline