A judge ruled the council has to fund the full $4.4 million sheriff budget.