The main purpose of this legislation is to enhance national security by ensuring that individuals entering the United States are thoroughly checked against a federal terrorist screening database. This is aimed at identifying potential threats at the border before they can enter the country. The key provisions of the legislation require U.S. Customs and Border Protection (CBP) to hold any individual, referred to as an alien, in custody until their name has been cross-referenced with the terrorist screening database.