technically, it's not legal. many big companies do not allow H1b employees to take unpaid leave even during force shut down time. in real world, many employers do that. you can make your own judgement.