Internal party politics at play in decision to back Carney rather than the woman who stood with Trudeau for more than a decade