; such commingled revenues shall be deemed Federal financial assistance. No government may deny, withhold, or suspend the license or certification of a religiously affiliated adoption or foster care agency because of its religious teachings or practices, provided that the agency complies with generally applicable health and safety standards. (c) Religious Educational Institutions (1) No adverse action for religious mission No government shall take any adverse action against a religious educational institution, its faculty, students, or graduates because of its religious mission. (2) Accreditation No accrediting agency shall take an adverse action against a religious educational institution for noncompliance with an accreditation standard that would require the institution to act inconsistently with its religious mission as related to marriage, family, sexuality, or gender identity, except as these matters pertain to race, color, or national origin. Nothing in this provision shall be interpreted to deny an accrediting agency the authority under section 496(a) of the Higher Education Act ( 20 U.S.C. 1099b(a) ) to take action necessary to ensure that the courses or programs of instruction, training, or study offered by an institution of higher education are of sufficient quality to achieve the stated objective for which the courses or the programs are offered. An accrediting agency does not demonstrate that its adverse action against a religious educational institution is authorized under section 1099b(a) merely by showing that the action results from a rule of general applicability. (3) Remedies A religious educational institution harmed by a violation of this subsection may obtain injunctive relief against the responsible accrediting agency. Upon receiving a copy of such an injunction, the Department of Education shall deem the affected religious educational institution as accredited for all purposes under Federal law. The Department shall deny recognition for any purpose to an accrediting agency that knowingly