actually, i think it's clear enough that the position that the canadian government took in afghanistan is that what america wants or does not want is irrelevant in determining the legality and desirability of intervention; what's important is how the intervention exists in the framework and context of international law.
it follows that canada would have gone to afghanistan whether it was in america's best interests, or opposed to american interests altogether, so long as it was agreed upon by the security council. what america thought, in context, did not matter, and whether it was good for america or bad for america was not a part of the calculation.
so, are we doing america a favour? what does that mean?
i think we're just implementing the security council resolution...
https://www.ctvnews.ca/canada/top-trump-adviser-peter-navarro-disparages-canada-s-military-efforts-in-afghanistan-1.5079375