; and (B) by striking does not apply in subclause (II) and inserting did not apply for the taxable year . (c) Effective date The amendments made by this section shall apply to taxable years beginning after December 31, 2018. II Outer Continental Shelf oil and natural gas 201. Repeal of outer Continental Shelf deep water and deep gas royalty relief (a) In general Sections 344 and 345 of the Energy Policy Act of 2005 ( 42 U.S.C. 15904 , 15905) are repealed. (b) Administration The Secretary of the Interior shall not be required to provide for royalty relief in the lease sale terms beginning with the first lease sale held on or after the date of enactment of this Act for which a final notice of sale has not been published. III Investment in affordable housing 301. Use of savings for Housing Trust Fund investment (a) Use of savings For each of the years 2019 through 2028, the Secretary of the Treasury shall determine the amount of revenues accruing to the general fund of the Treasury by reason of the enactment of titles I and II of this Act and shall credit an amount equal to such revenues to the Housing Trust Fund established under section 1338 of the Federal Housing Enterprises Financial Safety and Soundness Act of 1992 ( 12 U.S.C. 4568 ). (b) Environmental rehabilitation activities Of any amount credited to the Housing Trust Fund for a year pursuant to subsection (a), 10 percent shall be allocated for and distributed to States, in accordance with the formula established pursuant to subsection (c)(3) of such section 1338, for use only to conduct activities to remediate environmental hazards, including activities for reduction, elimination, and abatement of lead-based paint hazards, in housing for extremely low- and very low-income households. (c) Childhood lead prevention Section 1338 (g)(2)(D) of the Federal Housing Enterprises Financial Safety and Soundness Act of 1992 ( 12 U.S.C. 4568(g)(2)(D) ) is amended— (1) in clause (v), by striking and at the end