The main purpose of this legislation is to prevent the use of federal funds to implement an executive order issued by former President Trump, known as Executive Order 14160. This order aimed to restrict the recognition of citizenship for certain children born in the United States. The legislation asserts that this executive order is unconstitutional and seeks to protect the right to birthright citizenship as guaranteed by the 14th Amendment of the U.S. Constitution.