ISIS and Al-Qaeda’s operational capabilities have dwindled, but the jihadist movement is far from defeated.