Ruling brings to an end lawsuits relating to the display of ballots in speaker elections