Judge rules against firm’s effort to reduce workers’ comp costs