Newport News City Council voted 6-1 to prohibit guns in buildings owned or used by the city government — despite opposition from several local gun owners and gun rights activists.