Judge dismisses NRA bankruptcy bid, dealing blow to group