The main purpose of this legislation, known as the American Students First Act, is to restrict federal financial assistance to public colleges and universities that offer certain educational benefits to individuals who are not legally present in the United States. The goal is to ensure that federal funds are not used to support educational opportunities for undocumented immigrants.