The purpose of this legislation is to end a federal program that allows state and local law enforcement officers to investigate, apprehend, and detain individuals based on their immigration status. The bill aims to clarify that immigration enforcement is solely the responsibility of the federal government, specifically the Department of Homeland Security. Key provisions of the legislation include the repeal of the authority granted to state and local law enforcement under a specific section of the Immigration and Nationality Act.