further, That, in addition, fees may be collected for the costs of publications, data, data tabulations, and data analysis completed under title V of the PHS Act and provided to a public or private entity upon request, which shall be credited to this appropriation and shall remain available until expended for such purposes: Provided further, That amounts made available in this Act for carrying out section 501(o) of the PHS Act shall remain available through September 30, 2025: Provided further, That funds made available under this heading (other than amounts specified in the first proviso under this heading) may be used to supplement program support funding provided under the headings Mental Health , Substance Abuse Treatment , and Substance Abuse Prevention . Agency for healthcare research and quality HEALTHCARE RESEARCH AND QUALITY For carrying out titles III and IX of the PHS Act, part A of title XI of the Social Security Act, and section 1013 of the Medicare Prescription Drug, Improvement, and Modernization Act of 2003, $370,500,000: Provided, That section 947(c) of the PHS Act shall not apply in fiscal year 2024: Provided further, That in addition, amounts received from Freedom of Information Act fees, reimbursable and interagency agreements, and the sale of data shall be credited to this appropriation and shall remain available until September 30, 2025. Centers for Medicare & Medicaid Services GRANTS TO STATES FOR MEDICAID For carrying out, except as otherwise provided, titles XI and XIX of the Social Security Act, $406,956,850,000, to remain available until expended. In addition, for carrying out such titles after May 31, 2024, for the last quarter of fiscal year 2024 for unanticipated costs incurred for the current fiscal year, such sums as may be necessary, to remain available until expended. In addition, for carrying out such titles for the first quarter of fiscal year 2025, $245,580,414,000, to remain available until expended. Payment under such title XIX may be made for any quarter with respect to a