; (4) $40,000,000 shall be available for the Secretary to make grants, notwithstanding section 203 of this title, to public housing agencies for emergency capital needs, including safety and security measures necessary to address crime and drug-related activity, as well as needs resulting from unforeseen or unpreventable emergencies and natural disasters excluding Presidentially declared emergencies and natural disasters under the Robert T. Stafford Disaster Relief and Emergency Act ( 42 U.S.C. 5121 et seq. ) occurring in fiscal year 2024: Provided, That of the amount made available under this paragraph, not less than $20,000,000 shall be for safety and security measures: Provided further, That in addition to the amount in the preceding proviso for such safety and security measures, any amounts that remain available, after all applications received on or before September 30, 2025, for emergency capital needs have been processed, shall be allocated to public housing agencies for such safety and security measures