The unanimous ruling said voted ballots must remain in the custody and control of election officials, even when law enforcement is investigating suspected election misconduct.