; or (B) sexual activity should or should not be reserved for spouses within a marriage. The employee’s expression is not protected under subsection (c)(2) if it directly and materially impedes the employee’s performance of an essential job function. (3) Paragraphs (1) and (2) shall not apply to a nonprofit organization that operates to express or advocate particular viewpoints, or to an employer that is a religious corporation, association, educational institution, or society covered by section 701(o)(4). . (e) Claims Section 706(g)(2)(A) of the Civil Rights Act of 1964 ( 42 U.S.C. 2000e–5(g)(2)(A) ) is amended by striking sex, and inserting sex, sexual orientation, gender identity, . (f) Employment by federal government Section 717 of the Civil Rights Act of 1964 ( 42 U.S.C. 2000e–16 ) is amended— (1) in subsection (a), by striking sex, and inserting sex, sexual orientation, gender identity, ; and (2) in subsection (c), by striking sex and inserting sex, sexual orientation, gender identity, . (g) Government employee rights act of 1991 The Government Employee Rights Act of 1991 (title III of Public Law 102–166 ; 42 U.S.C. 2000e–16 et seq.) is amended— (1) in section 301(b), by striking sex, and inserting sex, sexual orientation, gender identity,