San Jose prevails in ordinance to reduce gun harm