I can't see how discussion about the rights and wrongs of the various military actions in Afghanistan over the years are in any way relevant to the case of Omar Khadr.
If he'd been charged with murder for killing a member of the Taliban or of Al Qaeda in similar circumstances I'd see that also as unjust.