Elon Musk told a New York judge that a pair of tweets he sent last month about Tesla Inc. weren’t improper, pushing against a request by the U.S. Securities and Exchange Commission to hold him in contempt for violating earlier restrictions on his social media posts. The billionaire Tesla chief...