Unless this action violates the terms of an employment contract or union agreement, it is legal. The fact is that most employment is "at will" which means that a business can set the conditions of the workplace much as it sees fit (absent some form of legally actionable discrimination). Accordingly, during a shutdown week, a company can let some employees off but require others to report to work.