Judge rules against federal election official in case involv