It’s still a matter of sovereignty, unless the Iraqi government (who darn well better be vassal) is perfectly happy with them getting attacked, which is still dumb not to defend your own sovereignty
Iran has been attacking Kurdish targets in Iraq for decades. They didn’t stop even when President Bush was in power! Iran attacked the Kurdish positions during 2006, 2007 and 2008. The Turks have been doing the same.