Any moneys received by the United States with respect to lands under the administration of the Forest Service
(1)
as a result of the forfeiture of a bond or deposit by a permittee or timber purchaser for failure to complete performance of improvement, protection, or rehabilitation work required under the permit or timber sale contract or
(2)
as a result of a judgment, compromise, or settlement of any claim, involving present or potential damage to lands or improvements, shall be covered into the Treasury and are hereby appropriated and made available until expended to cover the cost to the United States of any improvement, protection, or rehabilitation work on lands under the administration of the Forest Service rendered necessary by the action which led to the forfeiture, judgment, compromise, or settlement: Provided, That any portion of the moneys so received in excess of the amount expended in performing the work necessitated by the action which led to their receipt shall be transferred to miscellaneous receipts.