A judge on Tuesday approved a $40-million settlement by Tesla Inc. and Chief Executive Elon Musk with the U.S. Securities and Exchange Commission, resolving government claims that Musk misled the public with a flurry of tweets about a plan to take the company private. U.S. District Judge Alison...