Elon Musk will step down as Tesla chairman in a settlement with the SEC