Elon Musk's job as Tesla Inc's chief executive appeared safe on Thursday as a federal judge in Manhattan urged the billionaire to settle contempt allegations by the U.S. Securities and Exchange Commission.