Mr. Villegas flipped a district held by Representative David Valadao, a moderate Republican, in the state’s traditionally conservative Central Valley region.