Judge dismisses NRA bankruptcy case in blow to gun group