A judge has ordered that votes in a contested South Carolina legislative race be guarded by state police until a hearing can be held on alleged voting irregularities in Richland County.