Elon Musk is under a federal investigation related to his $44 billion takeover deal for Twitter Inc, the social media company said in a court filing made public on Thursday.