^ 24 basically ignored that for 7 of its 8 seasons*. CTU, for which Jack worked, was a branch of the CIA but covered domestic terrorism.
*In S7, CTU had been closed down and the FBI basically stood in for them for a season. CTU was back the following season, once again dealing with domestic terrorism.