Democrats had heavily targeted the South Texas district, which had been redrawn in last year’s redistricting.