Balanced Budget and Emergency Deficit Control Act of 1985 ( Public Law 99–177 ), as amended, $33,020,000 is designated by the Congress as being for an emergency requirement pursuant to section 251(b)(2)(A)(i) of the Balanced Budget and Emergency Deficit Control Act of 1985. FEDERAL ASSISTANCE (INCLUDING TRANSFER OF FUNDS) For activities of the Federal Emergency Management Agency for Federal assistance through grants, contracts, cooperative agreements, and other activities, $3,467,115,000, which shall be allocated as follows: (1) $488,800,000 for the State Homeland Security Grant Program under section 2004 of the Homeland Security Act of 2002 ( 6 U.S.C. 605 ), of which $84,600,000 shall be for Operation Stonegarden and $14,100,000 shall be for Tribal Homeland Security Grants under section 2005 of the Homeland Security Act of 2002 ( 6 U.S.C. 606 ): Provided , That notwithstanding subsection (c)(4) of such section 2004, for fiscal year 2024, the Commonwealth of Puerto Rico shall make available to local and tribal governments amounts provided to the Commonwealth of Puerto Rico under this paragraph in accordance with subsection (c)(1) of such section 2004. (2) $578,100,000 for the Urban Area Security Initiative under section 2003 of the Homeland Security Act of 2002 ( 6 U.S.C. 604 ). (3) $286,700,000 for the Nonprofit Security Grant Program under sections 2003 and 2004 of the Homeland Security Act of 2002 (6 U.S.C. 604 and 605), of which $143,350,000 is for eligible recipients located in high-risk urban areas that receive funding under section 2003 of such Act and $143,350,000 is for eligible recipients that are located outside such areas: Provided , That eligible recipients are those described in section 2009(b) of such Act ( 6 U.S.C. 609a(b) ) or are an otherwise eligible recipient at risk of a terrorist or other extremist attack. (4) $98,700,000 for Public Transportation Security Assistance, Railroad Security Assistance, and Over-the-Road Bus Security Assistance under sections 1406, 1513, and 1532 of the