Court decision on voting to cost county thousands