A federal judge has ruled that because a candidate for union office in the International Brotherhood of Electrical Workers Local 98 did not first allow the union to complete an internal investigation into alleged intimidation of candidates, part of the secretary of labor's lawsuit against the union had to be dismissed.