Since 2005, the Protection of Lawful Commerce in Arms Act (PLCAA) has provided near blanket immunity for gun makers and dealers from liability for crimes committed with their products. The law was passed after lawsuits by several cities tried to hold companies liable for gun violence.
Source: Explainer: Can US gunmakers be liable for mass shooting?