Musk’s close relationship with President Trump means many federal headaches related to Tesla could vanish within weeks or months.