This is an underreported part of American democracy: voters do not only choose leaders who make laws. In many states, they also choose the chief legal officer who decides how the state will defend its policies, challenge the government in Washington and represent residents in court.