TC Energy to divest entire stake in Canadian pipeline projec