As Harris County judge, Ed Emmett led the state’s biggest county — 4.7 million people — through its most devastating natural disaster. That work won the moderate Republican bipartisan support, even in a county that overwhelmingly went blue in 2016.

But last week, Emmett lost his re-election bid in a close race. And come January, the incumbent will turn his job over to Democrat Lina Hidalgo, a 27-year-old political newcomer who has never attended a meeting of the commissioners court she will now lead (she has, she said, watched them online).

At the top of the ticket, U.S. Sen. Ted Cruz lost the county by more than 200,000 votes; Emmett’s race — midway down the longest ballot in the country — was decided by a margin of about 19,000 votes.

That result, strategists say, makes Emmett the latest casualty of straight-ticket voting in Texas. In Harris County, more than half a million voters pulled one lever to support every Democrat on the ballot, and just more than 400,000 Republicans did the same. Emmett — a moderate who had focused his campaign on persuading the Democrats who favor him to make their way far enough down the ballot to back him — made up much of that difference, but he couldn’t quite eke out a win.

Straight-ticket voting will end before the 2020 elections, bringing Texas into line with the vast majority of states.

Republicans — who lost numerous down-ballot officials, a dozen state House members and scores of judges, particularly in big cities — in some ways brought those losses upon themselves: The law that ended straight-ticket voting was written and approved by GOP lawmakers. It was originally set to go into effect before this year’s elections, but was at the last minute delayed until 2020.

‘2018 will not be the same as 2014’

If the top culprit for down-ballot Republican losses last week is a certain El Paso Democrat credited with drawing flocks of new voters to the polls, the second spot might go to straight-ticket voting. Yes, the argument goes, a lot of new Democrats came to the polls to cast their ballots for U.S. Rep. Beto O’Rourke in his campaign for U.S. Senate. In the process, many voted for other Democrats down the ballot who they knew little or nothing about. But without the one-punch option, GOP operatives argue, many of those voters would have walked out before dooming Republicans at the bottom of the ballot.

In East Texas, Republicans fared well with straight-party voting at the Nov. 6 general election. Of the Gregg County voters who cast straight-party votes, official results show that 70.39 percent pulled the Republican lever, while 29.07 percent opted for the Democratic Party candidates and 0.54 percent chose the Libertarian ticket.

In Upshur County, posted unofficial results showed 83.23 percent of the voters who cast straight-party votes did so for the Republican Party, 16.3 percent chose the Democratic Party and 0.48 percent picked the Libertarian Party.

Posted unofficial results in Rusk County show that of those voters who cast straight-party votes, 78.07 percent voted Republican, 21.65 percent voted Democrat and 0.28 percent voted Libertarian.

In Harrison County, official results show that straight-party votes went 46.62 percent Republican, 16.43 percent Democratic and 0.21 percent Libertarian.

After the 2020 elections, when straight-ticket voting ends, candidates will still appear beside their party affiliations, but most strategists expect fewer voters will make it all the way down to the local races. It’s hard to say what the statewide impact of that will be — voters can still choose to select all the candidates in their chosen party manually — but in the wake of a tough election for down-ballot Republicans, especially on the fringes of the state’s biggest cities, some are wishing the option had ended in 2018.

At first, that was the plan. Republican state Rep. Ron Simmons’ House Bill 25, which ended straight-ticket voting, was originally set to go into effect before the 2018 midterms; it passed the House with that language, and made it all the way to the Senate floor. Just before the bill passed in the upper chamber, Republican state Sen. Kelly Hancock of North Richland Hills tacked on an amendment delaying the effective date to 2020.

The delay, some local GOP officials said, particularly doomed down-ballot Republicans in or near urban areas like Houston, Dallas and Austin.

“I’ve been warning about it for years,” said Harris County GOP Chairman Paul Simpson. “At the last minute, they put it back in for 2018, and I told some legislators then, ‘2018 will not be the same as 2014.’”

Hancock told The Texas Tribune this week that “we waited one election cycle for implementation to allow plenty of notice for everyone, including candidates, election administrators and voters.”

Many Republicans tout the end of straight-ticket voting as a way of ensuring good governance.

“Eliminating straight-ticket voting has never been about benefiting one party or the other — it is promoting good government by making sure that every voter knows who they are voting for and what their qualifications are,” said Sherry Sylvester, a senior adviser to Republican Lt. Gov. Dan Patrick.

When the bill passed the Texas Senate, it drew most opposition from Democrats, who questioned whether eliminating the one-punch option would disproportionately hurt voters of color. A federal judge found as much in a Michigan lawsuit.

Ultimately, in this election, straight-ticket voting seems to have worked largely to Democrats’ advantage.

No one predicted the consequences better than the lieutenant governor, who warned of such an outcome during campaign season.

“Their plan was to give all the money, on the Democratic side, to Beto the Irishman O’Rourke,” Patrick warned at a New Braunfels campaign event in October. “Understand their strategy. If they can get to 4 or 5 (percent margin), if they can get a 75 or 80 percent straight-ticket vote on their side, guess what? Beto loses. But then they pick up judges down ballot. They pick up House members down ballot. They pick up state senators down ballot. They pick up local races down ballot.”

Emmett faulted the upper chamber, which Patrick leads, for failing to prevent that possibility.

“When the state Senate decided to keep straight-ticket voting for one more year, a lot of us thought that was a really dumb decision,” Emmett told a Houston TV station shortly after his loss last week.

‘Some people that ought not to be there’

Even as Democrats celebrate their victories, some quietly acknowledge that their winning candidates are not all equally prepared to take office. Especially in down-ballot judicial sweeps like those that flipped four state appeals courts last week, some strong, well-funded candidates enter office with years of experience while others are swept in on the top of the ticket’s coattails. Some appellate lawyers are warily looking ahead to courts with new ideological bents and less experienced judges.

Last week, voters in a 20-county district along the Gulf Coast elected to an influential state appeals court Rudy Delgado, who resigned his seat on a lower court earlier this year after he was indicted on federal bribery charges. Prosecutors claim that as a judge, he accepted bribes for favorable rulings.

Delgado’s attorney said in court documents he was “no longer campaigning for office,” and he was absent from the campaign trail — though he did report spending hundreds of campaign dollars on iPads and other goodies at a local Best Buy. Delgado did not return requests for comment.

Delgado may never preside over a case; the State Commission on Judicial Conduct already has suspended him from serving on a lower court, and the commission could suspend him from serving on the court of appeals even as his criminal case proceeds. His Republican opponent, Jaime Tijerina, worked to spread the word about Delgado’s criminal indictment.

But even still, Delgado was a Democrat running in a heavily Democratic South Texas judicial district; party officials and billboards on the side of the road urged voters to cast straight-ticket Democratic ballots. With that boost, Delgado eked out a victory.

— The Texas Tribune contributed to this report.