A New York state judge on Monday raised the prospect of dismissing claims from the trial of the National Rifle Association and key executives, after the New York attorney general’s office rested its case in chief alleging widespread corruption at the nonprofit gun rights organization.