City supervisors approved legislation Tuesday that will help grassroots farming groups replace barren concrete and forests of weeds on vacant land and rooftops with veggie gardens, chicken coops, and honeybee hives. And the move cements San Francisco’s role as a national leader in urban food production.