The ruling will prevent the law from being enforced in institutions of higher education, pending appeal.