Immediately after 9/11, U.S. counterterrorism authorities used immigration powers to arrest more than 1,000 foreign nationals, most of them Muslims from Arab and South Asian countries, whom the government viewed as potential national security threats.