The larger question though is if that is beneficial for the market as a whole. The idea of NASA not doing stuff internally is to benefit from the cost efficiency of the market. If NASA uses mainly SpaceX, they run the risk of creating a Halliburton like symbiosis and in that case you wonder why they don't do stuff internally rather than giving a share of taxpayer money to private shareholder and destroying the whole market by over-favoring one company in particular.
What did he do? He thought of trying for the fourth and final time. It worked!! In his own words, Elon said with tears in his eyes, that if the fourth launch had failed, he would have been broke. The next day he got a call from NASA. That saved SpaceX. I know hero worship is not very healthy, but can't help but marvel at Elon's vision.