The Supreme Court will hear an NRA appeal in a dispute with a former New York state official