Lawyers for US federal workers have said in a lawsuit that billionaire Trump adviser Elon Musk has violated the law with his weekend demand that employees explain their accomplishments or risk being fired.