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 violates this subsection. An accrediting agency that loses its government recognition may apply with the Department to restore its recognition if the agency demonstrates that the violation resulted from mistake or inadvertence. Within two years of the enactment of this Act, the Department shall issue final rules prescribing the procedures governing this section. (d) No Religious Tests No government shall— (1) exclude a person from an occupation by depriving a person of professional credentials or imposing a fine or penalty, including through a private right of action, because of the person’s religious beliefs or affiliations, provided that the person otherwise complies with occupational or professional standards that, in purpose and effect, are neutral toward religion and generally applicable