A Texas bankruptcy judge dismissed a case brought by the National Rifle Association, ruling that the nonprofit trade group with 5 million members did not file its petition involving a headquarters relocation for reasons intended by the bankruptcy code.