The purpose of this legislation is to provide a way for individuals to seek legal action if their rights are violated by officers or agents of U.S. Customs and Border Protection (CBP) or U.S. Immigration and Customs Enforcement (ICE). It aims to hold these federal agencies accountable for actions that infringe on constitutional rights. Key provisions of the legislation include the establishment of a civil remedy for individuals whose rights have been violated by CBP or ICE personnel.