The military and the civilian administration that oversees the military in the USA have known that Iran is actively - and with effect - backing terrorism directed at US military and other interests for decades. Iran knows that we’ve known it, and that we don’t officially intend to do a damn thing about it. Any wonder that it continues?
That which is rewarded is repeated.
See #9.