In Texas, a state Senate election over the weekend has unnerved Republicans around the country after a Democrat in a deeply red district easily defeated the Republican candidate.