SpaceX gets almost $900 million in federal subsidies to deliver broadband to rural America https://www.cnn.com/2020/12/08/tech/spacex-starlink-subsidie...
SpaceX just won $885 million in federal subsidies to expand Starlink, Elon Musk's satellite-internet project https://www.msn.com/en-us/news/technology/spacex-just-won-do...
In addition to that SpaceX is government contractor.
SpaceX and Blue Origin are the next Boeing/Lockheed. Government gives them both money to R&D so that they don't have just one innovative supplier.
Tesla is a great example of government project. Tesla has received $3-4 billion in subsidies.
edit:
SpaceX has received other direct subsidies. NASA has given seed money and development funding for Dragon, Falcon 9, engines and demonstration launches ($248M at least) https://www.nasa.gov/pdf/453605main_Commercial_Space_Minutes...