A federal judge has dismissed 16 lawsuits filed by survivors of a 2015 mass shooting at a South Carolina church who sued the government over the failure of an FBI-run background check system to prevent the purchase of the murder weapon.