They’re protected from liability of the vaccine doing harm to a person. The government has a fund you can apply to receive compensation if you claim you’re injured by a vaccine. A lot of hoops to jump through; most people are unsuccessful.
Big Pharma companies have been sued by DOJ in the past and paid billions for wrongdoing.