The Second Amendment Foundation filed a federal lawsuit in North Carolina, seeking a permanent injunction