WASHINGTON - The Supreme Court appeared sympathetic Wednesday to states that seek to prune their voting rolls by targeting people who haven't voted in a while.

In a case from Ohio, opponents of the practice called it a violation of a federal law that was intended to increase the ranks of registered voters. Justice Sonia Sotomayor said minorities and homeless people appear to be disproportionately kicked off the rolls.

But the court's conservatives and possibly also Justice Stephen Breyer indicated that they would uphold the state's effort.

Ohio is among a handful of states that use voters' inactivity to trigger a process that could lead to their removal from voter rolls. A ruling for Ohio could prompt other states to adopt the practice.

Signaling support for Ohio's defense of the process, Justice Anthony Kennedy said states are "trying to protect their voter rolls … What we're talking about are the best tools to implement that reason, to implement that purpose." Kennedy's vote often is decisive in voting cases that otherwise split conservative and liberal justices.

Breyer repeatedly pressed the lawyer for opponents of the process but had no questions for the lawyer representing Ohio.

The opponents say the 1993 National Voter Registration Act prohibits using voting inactivity to trigger purges and that Ohio purges registered voters who are still eligible to vote. A federal appeals court sided with the challengers.

Under Ohio rules, registered voters who fail to vote in a two-year period are targeted for eventual removal from registration rolls, even if they haven't moved and remain eligible. The state said it uses the disputed process only after first comparing its voter lists with a U.S. postal service list of people who have reported a change of address. But not everyone who moves notifies the post office, the state said.

So the state asks people who haven't voted in two years to confirm their eligibility. If they do, or if they show up to vote over the next four years, voters remain registered. If they do nothing, their names eventually fall off the list.

Ohio is backed by 17 other mostly Republican states and the Trump administration, which reversed the position taken by the Obama administration.

Sotomayor questioned Solicitor General Noel Francisco at length about the switch. "Seems quite unusual that your office would change its position so dramatically," Sotomayor said.

Francisco said the new administration thinks the National Voter Registration Act reflects a compromise between "dramatically increasing the number of voters on the voter rolls" and "giving states the flexibility they need to manage the issues that arise when you have overinflated voter rolls."

A decision for Ohio would have widespread implications because it would fuel a broader effort to make it more difficult and costly to vote, Ohio's opponents said.

A decision in the case is expected by late June.