The Secretary may, notwithstanding section
3302 of title
31, retain and use a portion of the revenues from the sale of oil and gas taken in-kind that otherwise would be deposited to miscellaneous receipts, without regard to fiscal year limitation, or may use oil or gas received as royalty taken in-kind (referred to in this paragraph as “royalty production”) to pay the cost of—