Any amount transferred to the Secretary of Defense by the Secretary of Veterans Affairs for necessary expenses for the planning, design, and construction, or the leasing, of a shared medical facility, if the amount of the share of the Department of Defense for the cost of such project does not exceed the amount specified in
section 2805(a)(2) of this title, may be credited to accounts of the Department of Defense available for the construction of a shared medical facility.