The city of Gary, Ind.’s lawsuit against gun manufacturers and local dealers survived a potential setback when a judge ruled unconstitutional a year-old federal law shielding gun makers from lawsuits.

Lake County (Ind.) Superior Court Judge Robert A. Pete denied gun makers’ request to dismiss the lawsuit filed by the city seven years ago that alleges gun makers do little to control the flow of handguns used in crimes.