Elon Musk and his electric vehicle company Tesla, opens new tab won the dismissal of a federal lawsuit accusing them of defrauding investors by hyping the cryptocurrency dogecoin and conducting insider trading, causing billions of dollars of losses.