A federal judge on Thursday ordered Tesla CEO Elon Musk to testify under oath in two cases where he is accused of defrauding voters in swing states before the 2024…