The New Hampshire Supreme Court on Friday voted in a 4-0 decision that a 2017 state law requiring proof of residence to vote is unconstitutional, saying that it “imposes unreasonable burdens on the right to vote.”