Court rules against NRA case