The Justice Department doesn’t have authority to use civil rights and voting laws to obtain voter lists, a judge rules, in a decision that could influence cases in other states.