Governor J.B. Pritzker, however, has vowed to appeal the ruling.