The main purpose of this legislation is to prevent members of the Chinese Communist Party and their family members from obtaining certain types of visas to enter the United States. Specifically, it targets F visas, which are typically for academic students, and J visas, which are often used for exchange visitors. The goal is to protect U.S. higher education institutions and national security by restricting access to individuals affiliated with the Chinese Communist Party.