OC judge resigns amid controversy