Troy Balderson, Republican candidate for Ohio's 12th Congressional District, speaks to a crowd of supporters during an election night party Tuesday, Aug. 7, 2018, in Newark, Ohio. (AP Photo/Jay LaPrete)

Troy Balderson, Republican candidate for Ohio's 12th Congressional District, speaks to a crowd of supporters during an election night party Tuesday, Aug. 7, 2018, in Newark, Ohio. (AP Photo/Jay LaPrete)

WESTERVILLE, Ohio (AP) — Two high-stakes elections that tested President Donald Trump’s clout and cost both parties millions of dollars were too close to call on Wednesday. Trump claimed victory in one nevertheless and proclaimed himself ‘5 for 5’ for Tuesday’s Election Day.

In battleground Ohio, the president took credit for Republican Troy Balderson’s performance, calling it “a great victory,” though the congressional contest could be headed to a recount. Democrats could also celebrate their strong showing in the district that has gone Republican for decades.

ADVERTISEMENT

“We’re not stopping now,” Democrat Danny O’Connor told cheering supporters Tuesday night. Whoever is eventually declared the winner in the special election will take office immediately but only until the end of the year. The two men will face off again in November for the full 2019-2020 term.

But Trump declared unconditional victory, tweeting Wednesday, “As long as I campaign and/or support Senate and House candidates (within reason), they will win!”

He claimed to have helped five GOP candidates win, including Bill Schuette for Michigan governor, John James for Michigan Senate and Josh Hawley for Missouri Senate. “5 for 5!” Trump tweeted.

Though, as in Ohio, the Kansas primary for governor was too close to call.

With election officials halting the vote count Wednesday morning, Secretary of State Kris Kobach led incumbent Gov. Jeff Colyer by fewer than 200 votes. It could be several days before all absentee votes are counted.

The day’s races in five states, like many before them, tested the persistence of Trump’s fiery supporters and the momentum of the Democratic Party’s anti-Trump resistance.

The results were helping determine the political landscape — and Trump’s standing within his own party — as the GOP defends its House and Senate majorities this fall.

If Balderson holds on in Ohio, Republicans will have won eight of nine special House elections since 2016, most in Republican-leaning districts.

In Kansas, Republicans were fighting among themselves in an unusual battle for governor in which the president sided with the incumbent’s challenger.

A new state law allows ballots postmarked as of Tuesday to be counted, so long as they arrive within three days of Election Day.

Kobach received a late endorsement from Trump. Colyer received the endorsement of the National Rifle Association and had the backing of Kansas political legend Bob Dole.

Should the polarizing Kobach win the primary, some Republican operatives fear he could lose the governorship to Democrats this fall. The race could become further disrupted if Kansas City-area businessman Greg Orman makes it onto the November ballot. He submitted petitions Monday with more than 10,000 signatures for what could become the most serious independent run for Kansas governor in decades.

Trump made his preference clear for Kobach.

“He is a fantastic guy who loves his State and our Country - he will be a GREAT Governor and has my full & total Endorsement! Strong on Crime, Border & Military,” the president tweeted on the eve of the election.

In Kansas’ 3rd Congressional District, Sharice Davids became the state’s first Native American and gay nominee for Congress.

The 38-year-old attorney and activist prevailed in a close six-candidate Democratic primary and will face four-term Republican Rep. Kevin Yoder.

Davids edged labor lawyer Brent Welder, who received the endorsements and a June campaign visit from Vermont Sen. Bernie Sanders and New York House candidate Alexandria Ocasio-Cortez.

Democrats are targeting the district, which includes the state’s metropolitan Kansas City area. Hillary Clinton narrowly won it in the 2016 presidential race.

In Ohio, the script for the special election was somewhat familiar this year: An experienced Trump loyalist, Balderson, was fighting a strong challenge from O’Connor, a fresh-faced Democrat in the state’s 12th congressional District, a Columbus-area suburban area held by the Republican Party for more than three decades. As voters were going to the polls, Trump said Balderson would make a “great congressman.”

The winner takes the seat previously held by Pat Tiberi, a nine-term incumbent who resigned to take a job with an Ohio business group.

There were at least 3,367 provisional ballots left to be reviewed. That’s enough for O’Connor to potentially pick up enough to force a recount.

The Associated Press does not declare winners in races subject to an automatic recount.

In a special election season that featured nearly a dozen congressional contests, Democrats claimed just a handful of wins, but they may have cause for optimism this fall. In virtually every special election test dating back to the spring of 2017, Democratic candidates performed significantly better than their party had in those same places two years earlier.

Trump won Ohio’s 12th Congressional District, for example, by more than 11 points in 2016; on Tuesday night, Balderson and O’Connor were separated by less than 1 point.

There are 79 House races this fall considered more competitive than the Ohio district — at least looking at Trump’s 2016 performance — according to data compiled by the Democrats’ national campaign committee.

Despite the deadlocked race, the details of the Ohio returns suggest considerably higher Democratic enthusiasm less than 100 days before the midterms.

O’Connor’s total of nearly 100,000 votes far exceeded what the Republican Tiberi’s Democratic opponent got in 2014. Balderson’s total — just more than 101,500 votes — was barely two-thirds of Tiberi’s 2014 mark of about 150,000.

“Over the next three months, I’m going to do everything I can to keep America great again, so that when we come back here in November — get ready, we gotta come back here in November — I have earned your vote for a second time,” Balderson told supporters.

It’s unclear how much Trump’s support helped or hurt Balderson. Described by campaign operatives as a “Whole Foods” district, the largely suburban region features a more affluent and educated voter base than the typical Trump stronghold.

Ohio Gov. John Kasich, a leading voice in the GOP’s shrinking anti-Trump wing, once represented the district in Congress.

At times, the race centered on Trump’s tax cuts as much as the candidates.

O’Connor and his Democratic allies railed against the tax plan, casting it as a giveaway for the rich that exacerbates federal deficits and threatens Medicare and Social Security. Balderson and his Republican allies have backed away from the tax plan in recent weeks, training their fire instead on top House Democrat Nancy Pelosi.

O’Connor’s campaign spent $2.25 million on advertising compared to Balderson’s $507,000, according to campaign tallies of ad spending. But the Republican campaign arm and its allied super PAC picked up the slack, spending more than $4 million between them.

In Michigan , former state Rep. Rashida Tlaib is poised to become the first Muslim woman in Congress. She won the Democratic nomination to run unopposed in November.

The field was set in two Senate contests.

In Missouri, Democratic Sen. Claire McCaskill claimed her party’s nomination, while state Attorney General Josh Hawley will represent the GOP.

And in Michigan, Democratic Sen. Debbie Stabenow will take on military veteran and business executive John James, who won the GOP nomination. James would join Sen. Tim Scott of South Carolina as the chamber’s only black Republicans.

Trump tweeted that James is “a potential Republican star.”

___

Peoples reported from Washington. Associated Press writers John Hanna in Topeka, Kansas, and Angie Wang in Westerville, Ohio, contributed.

___

Sign up for “Politics in Focus,” a weekly newsletter showcasing the AP’s best political reporting from around the country leading up to the midterm elections: https://bit.ly/2ICEr3D