A group aligned with a conservative Illinois think tank sued the state in federal court on Thursday, challenging a recent law allowing Election Day voter registration at polling places in the state’s most populous counties.