The timing of the strike on Iran, by order of President Donald J. Trump, was perfect for an operation twenty years in the making.