The party did not gain enough seats to take control of the council after an unexpected result.