The lawsuit could reverse a 2005 law that granted gun manufacturers immunity when their products were used in a crime.