How the handful of countries on the U.S. terrorism blacklist earned their spots