An Orange County superior court judge ruled in favor of the Registrar of Voters after the district attempted to sue