A federal judge in New York has ruled that Elon Musk and his company Tesla has won the dismissal of a federal lawsuit that accused them of both defrauding investors by ramping up the cryptocurrency “dogecoin” and conducting insider trading, causing billions of dollars of losses.