Elon Musk's businesses, including Tesla, have secured nearly $38 billion in government funding over two decades, largely due to regulatory credits.