The main purpose of this legislation is to prevent the Department of Homeland Security from using federal funds to engage in discriminatory profiling. It aims to ensure that individuals are not targeted for law enforcement actions based on their race, ethnicity, gender, or other personal characteristics. Key provisions of the law include a clear prohibition against using federal funds for any actions that involve seizing, detaining, or arresting individuals based on specific criteria.