LOS ANGELES - In an election otherwise full of liberal triumphs, the gay rights movement suffered a stunning defeat as California voters approved a ban on same-sex marriages that overrides a recent court decision legalizing them.
The constitutional amendment -- widely seen as the most momentous of the nation's 153 ballot measures -- will limit marriage to heterosexual couples, the first time such a vote has taken place in a state where gay unions are legal.
Gay-rights activists had a rough election elsewhere as well. Ban-gay-marriage amendments were approved in Arizona and Florida, and Arkansas voters approved a measure banning unmarried couples from serving as adoptive or foster parents. Supporters made clear that gays and lesbians were their main target.
In California, with 95 percent of precincts reporting Wednesday, the ban had 5,125,752 votes, or 52 percent, while there were 4,725,313 votes, or 48 percent, opposed.
Similar bans had prevailed in 27 states before Tuesday's elections, but none were in California's situation -- with about 18,000 gay couples married since a state Supreme Court ruling in May. The state attorney general, Jerry Brown, has said those marriages will remain valid, although legal challenges are possible.
Spending for and against the amendment reached $74 million, making it the most expensive social-issues campaign in U.S. history and the most expensive campaign this year outside the race for the White House.
Elsewhere, voters in Colorado and South Dakota rejected measures that could have led to sweeping bans of abortion, and Washington became only the second state -- after Oregon -- to offer terminally ill people the option of physician-assisted suicide.
A first-of-its-kind measure in Colorado, which was defeated soundly, would have defined life as beginning at conception. Its opponents said the proposal could lead to the outlawing of some types of birth control as well as abortion.
The South Dakota measure would have banned abortions except in cases of rape, incest and serious health threat to the mother. A tougher version, without the rape and incest exceptions, lost in 2006. Anti-abortion activists thought the modifications would win approval, but the margin of defeat was similar, about 55 percent to 45 percent of the vote.
"The lesson here is that Americans, in states across the country, clearly support women's ability to access abortion care without government interference," said Vicki Saporta, president of the National Abortion Federation.
In Washington, voters gave solid approval to an initiative modeled after Oregon's "Death with Dignity" law, which allows a terminally ill person to be prescribed lethal medication they can administer to themselves. Since Oregon's law took effect in 1997, more than 340 people -- mostly ailing with cancer -- have used it to end their lives.
The marijuana reform movement won two prized victories, with Massachusetts voters decriminalizing possession of small amounts of the drug and Michigan joining 12 other states in allowing use of pot for medical purposes.
Henceforth, people caught in Massachusetts with an ounce or less of pot will no longer face criminal penalties. Instead, they'll forfeit the marijuana and pay a $100 civil fine.
The Michigan measure will allow severely ill patients to register with the state and legally buy, grow and use small amounts of marijuana to relieve pain, nausea, appetite loss and other symptoms.
Nebraska voters, meanwhile, approved a ban on race- and gender-based affirmative action, similar to measures previously approved in California, Michigan and Washington. Returns in Colorado on a similar measure were too close to call.
Ward Connerly, the California activist-businessman who has led the crusade against affirmative action, said Obama's victory proved his point. "We have overcome the scourge of race," Connerly said.
Energy measures met a mixed fate. In Missouri, voters approved a measure requiring the state's three investor-owned electric utilities to get 15 percent of their electricity from renewable sources by 2021. But California voters defeated an even more ambitious measure that would have required the state's utilities to generate half their electricity from windmills, solar systems, geothermal reserves and other renewable sources by 2025.
Two animal-welfare measures passed -- a ban on dog racing in Massachusetts, and a proposition in California that outlaws cramped cages for egg-laying chickens.
Amid deep economic uncertainty, proposals to cut state income taxes were defeated decisively in North Dakota and Massachusetts.
In San Francisco, an eye-catching local measure -- to bar arrests for prostitution -- was soundly rejected. Police and political leaders said it would hamper the fight against sex trafficking. And in San Diego, voters decided to make permanent a ban on alcohol consumption on city beaches.