be so treated, and (B) shall not be taken into account as gross income under paragraph (2). . (b) Application to nonresident alien individuals Section 871 is amended by redesignating subsection (n) as subsection (o) and by inserting after subsection (m) the following new subsection: (n) Treatment of passenger cruise gross income (1) In general For purposes of this title, the effectively connected passenger cruise gross income of a nonresident alien individual shall be treated as gross income which is effectively connected with the conduct of a trade or business in the United States. (2) Definitions and special rules For purposes of this subsection— (A) Definitions Terms used in this subsection which are also used in section 882(f) shall have the same meaning as when used in such section, except that section 882(f)(2) shall be applied by substituting section 872(b)(1) for section 883(a)(1) . (B) Treatment of otherwise effectively connected income Rules similar to the rules of section 882(f)(5) shall apply for purposes of this subsection. . (c) Coordination with reciprocal exemptions for shipping income (1) In general Section 883(a)(1) is amended by striking Gross income and inserting Except as provided in section 882(f), gross income . (2) Nonresident alien individuals Section 872(b)(1) is amended by striking Gross income and inserting Except as provided in section 871(n), gross income . (d) Coordination with tax on gross transportation income Section 887(b)(4) is amended by adding at the end the following new flush text: The preceding sentence shall not apply to any United States source gross transportation income which is effectively connected passenger cruise gross income (within the meaning of section 871(n) or 882(f)). . (e) Effective date The amendments made by this section shall apply to taxable years beginning after December 31, 2017. 14502. Restriction on insurance business exception to passive foreign investment company rules (a) In general Section 1297(b)(2)(B) is amended to read as follows: (B)