; (2) by striking The Bureau and inserting the following: (1) In general The Bureau ; and (3) by adding at the end the following: (2) Treatment of loans held by smaller institutions The Bureau shall, by regulation, exempt from the requirements of subsection (a) any loan secured by a first lien on the principal dwelling of a consumer, if such loan is held by an insured depository institution having assets of $10,000,000,000 or less. . 4. Minimum standards for residential mortgage loans Section 129C(b)(2) of the Truth in Lending Act ( 15 U.S.C. 1639c(b)(2) ) is amended by adding at the end the following: (F) Safe Harbor (i) In general In this section— (I) the term qualified mortgage includes any mortgage loan that is originated and retained in portfolio for a period of not less than 3 years by a depository institution together with its affiliates has less than $10,000,000,000 in total consolidated assets; and (II) loans described in subclause (I) shall be deemed to meet the requirements of subsection (a). (ii) Exception for certain transfer In the case of a depository institution that transfers a loan originated by that institution to another depository institution by reason of the bankruptcy or failure of the originating depository institution or the purchase of the originating depository institution, the depository institution acquiring the loan shall be deemed to have complied with the requirement under clause (i)(I). . 5. Exemption from Volcker rule Section 13(h)(1) of the Bank Holding Company Act of 1956 ( 12 U.S.C. 1851(h)(1) ) is amended— (1) in subparagraph (D), by redesignating clauses (i) and (ii) as subclauses (I) and (II), respectively; (2) by redesignating subparagraphs (A) through (D) as clauses (i) through (iv), respectively; (3) by striking institution that functions solely in a trust or fiduciary capacity, if— and inserting the following: “institution— (A) that functions solely in a trust or fiduciary capacity, if—