US forces are set ⁠to pull out from their last bases in Iraq by Wednesday, a departure celebrated as a victory by Iran and its allies who now have deep influence in the country where 4,500 Americans died during more than two decades of war.