You sure do talk a lot about this for someone who doesn’t understand the basics. The groups Iran backs in Iraq are there to prop up the current Iraqi regime since they’re afraid of another Sunni leader emerging if the current regime falls. They’re mainly worried about an Islamic State takeover, and Iraq accepts their presence.
Jordan has a dictator who lied and said the US base that got struck was in Syria instead of Jordan most likely to avoid backlash from the population about the presence of a US base in their borders.
This is a discussion about what the people who live there want, not what the government does, are we not on the same page here? The fact is the Iraqi PM is facing internal pressure to expel US forces and he is in the process of doing that.