Voters in a Sacramento-area Assembly district have defeated a Republican attorney who became the face of California's ongoing debate over gay marriage during the fall election.