NRA chief, one of the most powerful figures in US gun policy, says he's resigning days before trial