NRA's quest to expand gun rights takes it to court