U.S. District Judge Stephen P. McGlynn’s order doesn’t take effect for 30 days. Gov. J.B. Pritzker pledged a swift appeal.