A proposed law would hold gun manufacturers and retailers responsible for harm done by their weapons if they don’t work to prevent them from falling into the wrong hands.