Americans will debate the American drone strike that killed the Iranian commander Maj. Gen. Qassim Suleimani for a long time: whether it was wise, what it means for the Middle East, and how to proceed. But so far, the most dramatic consequences have arisen from where the strike happened — in Iraq. It appears that in undertaking the strike, the Trump administration may have sacrificed a valuable American counterterrorism partnership with Iraq at the altar of a risky pressure campaign against Iran with no end in sight.

On Sunday, Iraq’s Parliament took a nonbinding vote urging Iraq’s government to expel American forces from the country. The strike — on Iraqi soil, killing Iraqi officials, without Iraqi consent — appears to have united the two largest rival Shiite parliamentary blocs behind expulsion. Since 2014, American troops have been in the country as invited guests of the Iraqi government to fight the Islamic State and train the Iraqi military. Iraqis deemed a shooting war with Iran and its Iraqi allies as a far cry from that mission.

Iraqi politics sometimes goes to the precipice only to pull back. That could still happen here, especially given that Kurdish and Sunni leaders boycotted the vote. But it is difficult to see how American forces can stay to conduct their mission if the Iraqi Parliament, as well as inflamed Iraqi militias, now wish them gone. Iraqi political factions have previously tried to expel American forces only to fall short. But this time is different. After popular protests against corruption, Iraq’s political leadership is the weakest it has been in 15 years. So are the ties between American and Iraqi leaders.

Assuming these votes do indeed mean that America’s days in Iraq are numbered, that is bad for Iraq and America, a major opportunity for the Islamic State, and also a big victory for Iran. General Suleimani would have been pleased to see American forces pushed out of a country that shares a 900-mile border with Iran, where American troops represented one of the major counterweights to Tehran’s domination.