Add to that the amount of interest they generate among people - they're beginning to achieve what Star Trek did once, making space cool again. I personally know people who are dreaming (and some moving towards) aerospace career because of SpaceX, and with the amount of hype you see around the Internet, I'm pretty sure we'll soon have a generation of engineers inspired by Elon's companies.
Oh, and they do all that for dirt cheap.
I don't know how good they're on an absolute scale, or compared to the next best alternative, but they're definitely very cost-effective in terms of current and potential benefits to humanity.
For one small example: Space is by far the best place to put observatories. Yet only a few special--and small ones--are there. What if observatories were routinely space-based?
SpaceX may not be doing the science themselves, but have the capability to act as a huge multiplier to those who are doing it. A much higher multiplier than any feasible amount of money shovelled into the existing system would create.