Iran has congratulated the people and government of Iraq on the withdrawal of American occupying forces and other foreign troops after more than two decades of disastrous military presence.