What the US is doing in the world, including in Afghanistan and Iraq, is spreading US tyranny, which is obviously the opposite of freedom. The most basic condition for freedom is that the people who decide who lives and who dies can be unelected by the people over whom they exercise this power; freedom requires this power by the ruled over the rulers. The US cannot be unelected by the people of the growing number of countries where the US decides who lives and who is to be killed. To take just one example, the US has established itself as the unelected ruler of Iraq; all Iraqis who don't pretend to submit will be killed by the US soldiers, whose main job this is. The US is trying to establish an Iraqi force which is to be led by the US and will be supported by US soldiers in airplanes flying over Iraq. The task of this Iraqi force will not be to defend Iraq from foreign attack, but to work for the foreign attacker, killing any Iraqi who won't submit to US-led forces.
US tyranny over other people all over the world is a longstanding pattern. It started on the American continents, but throughout the twentieth century, beginning in the Philippines with the conquest of that country (the US killed hundreds of thousands of Filipinos to accomplish its domination there), it has expanded across the globe and is now the greatest it has ever been. Today it is perfectly ordinary and routine for the US to decide who to kill in a number of countries where the people over whom it exercises this power have no power over it at all. Of course Iraq and Afghanistan are completely controlled by US troops whose main job is to kill all citizens who don't pretend to submit, but the US reserves the right to kill people at will in other countries as well, something it has done for a very long time.
The US will continue to kill people in their own homes all over the world until it is physically forced back within its borders, or until the world's people assert that as long as the US is going to kill people in their own homes, they have the right to vote in and run in US elections, or until the limitlessly self-righteous and thus unendingly aggressive US patriotic ideology is destroyed.