No need to get all smarmy.
The war in Iraq, and subsequent rebuilding, is a unilateral action involving the USA and its partners in the Coalition. Any successes and failures there are directly attributable to US and Coalition partner actions. They should get all credit for successes and take all blame for mistakes due directly to Coalition actions.
The *rebuilding* in Afghanistan, i.e. putting the country back together, is a UN mission. It was from the start. IIRC, the overthrow of the Taliban was a UN mission as well, but I'm not positive on that point. Yes, it was because of an attack on American soil, but the rebuilding is in the hands of the UN organization. If the rebuilding is screwed up, the UN F'ed it all up. The US forms part of the UN, but cannot take all the blame for failure there.
From your post, you evidently, are very informed on the topic at hand, or are discussing how things "should be". I am discussing how things are, facts. There is no room for nuance in these facts. You may disagree that the USA is invading Iraq to enforce UN sanctions, thinking that it's a stupid thing to do, but it is, nonetheless, the reality of the situation. Ditto with Afghanistan.