Decision likely to be appealed quickly, but it offers reprieve for federal workers facing nearly year-long push by Trump admin