; and (2) be completed not later than 6 months after the date the Secretary receives the report under subsection (i) from a State. (k) Civil right (1) Nondiscrimination No person in the United States shall, on the basis of actual or perceived race, color, religion, national origin, sex, gender identity (as defined in paragraph 249(c)(4) of title 18, United States Code), sexual orientation, or disability, be excluded from participation in, be denied the benefits of, or be subjected to discrimination under any program or activity funded in whole or in part with funds made available under this Act. (2) Exception If sex segregation or sex-specific programming is necessary to the essential operation of a program, nothing in this subsection shall prevent any such program or activity from consideration of an individual's sex. In such circumstances, grantees may meet the requirements of this subsection by providing comparable services to individuals who cannot be provided with the sex-segregated or sex-specific programming. (3) Construction Nothing contained in this subsection shall be construed, interpreted, or applied to supplant, displace, preempt, or otherwise diminish the responsibilities and liabilities under other State or Federal civil rights law, whether statutory or common. (l) Rule of construction Nothing in this section shall be construed to provide for inappropriate contact between students and law enforcement, court personnel, child protective services or any other non-local educational agency that may result in unnecessary or disproportionate contact with the juvenile justice system. (m) Authorization of appropriations There are authorized to be appropriated to carry out this section $10,000,000 for the period of fiscal years 2018 through 2024.