Employees in the city’s fire and jail operations made up nearly 40 percent of the city’s payroll in 2023.