Err, kinda. Iran is still as aligned against America and with its rivals as if it were a socialist nation. But while the US decided at some point that they value Iran more as an MIC-justifying bogeyman than a friend (them ripping up the Iran Deal), it's coming back to bite them in the ass with the rise of the opposing pole.
Then again, maybe we're ascribing too much rational thought to the American ruling class, since it's apparent that even they don't know what the fuck they want.