Courts have upheld assault-weapons bans, adding heft to a Connecticut suit that tests laws shielding firearms firms from liability. The case is still a stretch, but growing assent to gun-rights…