A Democrat has emerged from a bitter race to win the right to challenge California governor Arnold Schwarzenegger, and a former Republican congressman from California narrowly beat his Democratic rival early today for a House seat, during the biggest primary night of the US election year.