This has allowed Tehran to use Iraq as a source of cash and power, helping fund its activities in the Middle East.