The San Francisco Board of Supervisors passed a resolution declaring the National Rifle Association a “domestic terrorist organization” and recommending that the city and county no longer do business with any entity that also has dealings with the gun-rights group.