; and for such purposes for the first quarter of fiscal year 2025, $1,400,000,000, to remain available until expended. For carrying out, after May 31 of the current fiscal year, except as otherwise provided, titles I, IV–D, X, XI, XIV, and XVI of the Social Security Act and the Act of July 5, 1960, for the last 3 months of the current fiscal year for unanticipated costs, incurred for the current fiscal year, such sums as may be necessary. LOW INCOME HOME ENERGY ASSISTANCE For making payments under subsections (b) and (d) of section 2602 of the Low-Income Home Energy Assistance Act of 1981 ( 42 U.S.C. 8621 et seq. ), $4,025,000,000: Provided, That notwithstanding section 2609A(a) of such Act, not more than $9,600,000 may be reserved by the Secretary for technical assistance, training, and monitoring of program activities for compliance with internal controls, policies and procedures, and to supplement funding otherwise available for necessary administrative expenses to carry out such Act, and the Secretary may, in addition to the authorities provided in section 2609A(a)(1), use such funds through contracts with private entities that do not qualify as nonprofit organizations: Provided further, That all but $897,348,000 of the amount appropriated under this heading shall be allocated as though the total appropriation for such payments for fiscal year 2024 was less than $1,975,000,000: Provided further, That, after applying all applicable provisions of section 2604 of such Act and the previous proviso, each State or territory that would otherwise receive an allocation that is less than 97 percent of the amount that it received under this heading for fiscal year 2023 from amounts appropriated in both division H and in the second paragraph under this heading in title VIII of division N of Public Law 117–328 shall have its allocation increased to that 97 percent level, with the portions of other States' and territories' allocations that would exceed 100 percent of the amounts they respectively received in such fashion