WASHINGTON — States can target people who haven’t cast ballots in a while in efforts to purge their voting rolls, the Supreme Court ruled Monday in a case that has drawn wide attention amid stark partisan divisions and the approach of the 2018 elections. By a 5-4 vote that split the conservative and liberal justices, the court rejected arguments in a case from Ohio that the practice violates a federal law intended to increase the ranks of registered voters.