The ruling sets the stage for a legal showdown between Lusaka and his cabinet members over the limits of the governor’s authority on county officials.