The secret directive, which the top American commander signed in September, increased the number of troops sent to areas including Iran, Saudi Arabia and Somalia in hopes of disrupting militant groups or counter threats, as well as building internal networks against al-Qaeda and collecting intelligence about future attacks.