You're conflating receiving contracts for doing something better than the alternative, as a government handout. This shows a severe lack of understanding on how SpaceX won their contracts, and ignores the fact that they saved taxpayers money because other companies needed more money to do a poorer job.

As for Tesla, it received a $465 million loan in the early days that they paid back with interest over a decade ago, once again netting the taxpayer money. Meanwhile, their competitors like Ford and GM still owe billions to the government.