The main purpose of this legislation is to extend funding for grants that support intercity passenger rail projects. Specifically, it aims to continue financial assistance for these projects through the year 2032. This extension is intended to help improve and expand rail services, making them more efficient and accessible. Key provisions of the legislation include the amendment of an existing law to change the expiration date for grant authorizations from 2026 to 2032.