Quick search by citation:

42 U.S. Code § 1997g - Priorities for use of funds

It is the intent of Congress that deplorable conditions in institutions covered by this subchapter amounting to deprivations of rights protected by the Constitution or laws of the United States be corrected, not only by litigation as contemplated in this subchapter, but also by the voluntary good faith efforts of agencies of Federal, State, and local governments. It is the further intention of Congress that where Federal funds are available for use in improving such institutions, priority should be given to the correction or elimination of such unconstitutional or illegal conditions which may exist. It is not the intent of this provision to require the redirection of funds from one program to another or from one State to another.