The main purpose of this legislation, known as the "No Aid for Illegal Entry Act," is to restrict the use of federal funds by non-governmental organizations and the Department of the Interior for specific immigration-related services. The law aims to prevent these funds from being used to support individuals who are in the United States without legal status, except when it comes to minors.