A Sangamon County judge has ruled local units of government are exempt from a law the General Assembly passed this year declaring the Nov. 3 general election as a state holiday and requiring all government offices to be closed that day, unless they are used as polling places or for other election-related services.