The coffee chain was ordered to rehire the ex-workers and compensate others who were affected.