; and (B) to the extent that amounts made available under subparagraph (A) are insufficient, any amounts that are appropriated under subsection (d), to be distributed in accordance with section 300207(e)(2)(B)(ii)(III)(bb) of title 36, United States Code. . (b) Funding Section 401 of the Act of June 15, 1935 (commonly known as the Refuge Revenue Sharing Act ) (49 Stat. 383, chapter 261; 16 U.S.C. 715s ), is amended by striking subsection (d) and inserting the following: (d) Funding for payments (1) In general On October 1 of each fiscal year, out of any funds in the Treasury not otherwise appropriated, the Secretary of the Treasury shall transfer to the Secretary such sums as are necessary to make payments under paragraphs (1) and (2) of subsection (c) to counties, after taking into account— (A) amounts in the fund available for the payments for the fiscal year; and (B) amounts made available for payments from the National Resources Permanent Fund established by section 300207(a) of title 36, United States Code, for the fiscal year. (2) Receipt and acceptance The Secretary shall be entitled to receive, shall accept, and shall use to carry out this section the funds transferred under paragraph (1), without further appropriation. .