Elon Musk told Twitter employees to sleep in the office, and now San Francisco is investigating if he broke the law