The government of Iran certainly did not (and does not) like the U. S. military being in Iraq, but it (the Iranian government) had and has no right to set bombs to kill U. S. soldiers in Iraq, nor has the right to supply, train, and lead proxy armies in nations across the Middle East to incite civil wars, which is why president Trump efforts to stop the attacks on U. S. military in Iraq, and stop the proxy war activity.