Twitter has won the first leg of its legal battle with Elon Musk