Texas Democrats swept statewide offices and captured the state House in a historic political upset, while Republicans retained control of the state Senate.