The Senate left families and democracy in limbo but managed to reward one of the country’s worst mayors of the modern era.