Berkeley voters became the first in the country to approve taxing sodas to curb drinking, after costly campaigns by the soda industry helped defeat similar taxes in more than 30 other cities and states in recent years. In San Francisco, meanwhile, voters Tuesday became the latest around the nation to reject a soda tax, failing to give the measure the two-thirds support it needed to pass. The ballot measure in 100,000-resident Berkeley needed only a simple majority to pass, and won by a wide margin. The measure will require distributors of soft-drinks and certain other sugary drinks to pay a one-cent per ounce tax, which will go to the city's general fund. Supporters of the tax pinned soda as a main culprit in obesity and related diseases including diabetes. Berkeley and San Francisco have a record of embracing social change, making the two cities something of a last and best shot for a soda tax in the eyes of the supporters. In Berkeley, former New York City Mayor Michael Bloomberg was among the supporters encouraging voters to pass the soda tax. Bloomberg saw a court battle waged by the soda industry defeat his own effort to impose a limit on soft-drink sizes in New York City.