This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

WASHINGTON (AP) — Struggling to claw back power, Republicans pushed state by state early Wednesday to break the Democrats’ one-party hold on Washington in a grinding, dragged-out fight to upend President Joe Biden’s once-lofty agenda.

After all the polls closed, the Democrats’ fragile grasp on power remained at risk. With the narrowly held House and an evenly divided Senate, the party faced a new generation of Republican candidates — among them political newcomers, including deniers of the 2020 election and extremists inspired by Donald Trump who handily won some seats.

But the races stayed unusually tight. House Republicans ran into stiff competition in their march across the country, picking up some seats, and losing others. Battleground Senate races remained too early to call. The parties inched toward what could be another narrowly split Congress.

As the mood grew tense, House GOP Leader Kevin McCarthy, who is in line to become speaker if his party takes control, vowed to win the majority as he addressed a crowd of supporters well past midnight in Washington.

“We are expanding this party,” McCarthy said, calling out the races won so far. “The American people are ready for a majority that will offer a new direction that will put America back on track.”

It was the first major national election since the Jan. 6, 2021, attack on the Capitol, and emotions were raw. The recent violent assault on Speaker Nancy Pelosi’s husband has stunned many, and federal law enforcement warned of heightened threats nationwide. Biden’s party worked to hold on by the most tenuous of margins.

Even if their majority is slim, House Republicans could bring a new intensity to Capitol Hill with promises to end Biden’s most ambitious plans, tighten congressional oversight and launch grueling investigations that could potentially extend to impeachment of the president.

“While many races remain too close to call, it is clear that House Democratic members and candidates are strongly outperforming expectations,” Pelosi said in a statement. “As states continue to tabulate the final results, every vote must be counted as cast.”

All 435 seats in the House and one-third of the Senate were being decided. If Republican newcomers help the party seize control of the House, and possibly the Senate, the outcome will pose new challenges for Congress’ ability to govern — especially if margins are tight.

In the race for the House, battleground Virginia provided a snapshot. Republican state Sen. Jen Kiggans, a former Navy helicopter pilot, defeated Democratic Rep. Elaine Luria, a former Navy commander who had touted her work on the House committee investigating the Jan. 6 insurrection.

But elsewhere Democratic Rep. Abigail Spanberger prevailed over Trump-backed Yesli Vega in a suburban Virginia district Republicans hoped to flip. And Democrats held House seats in Rhode Island, Ohio, Kansas and New Hampshire that Republicans wanted, and flipped some including a suburban Illinois district from Republicans.

Still, Republicans were slowly amassing some of the five seats needed to reach a 218-seat House majority.

They picked up a Nashville-area seat long held by Democrats. And in a dramatic example of the difficult political environment for Democrats, the party’s House campaign chairman Rep. Sean Patrick Maloney was fighting for political survival against Republican state legislator Mike Lawler in New York’s Hudson Valley. He would be the first Democratic campaign chief to suffer defeat in decades.

The Senate races remained in flux. Democrats picked up Pennsylvania, where John Fetterman defeated Republican Mehmet Oz for an open seat was considered key to party control.

But elsewhere, Republican J.D. Vance, a venture capitalist and author of “Hillbilly Elegy,” defeated Democratic Rep. Tim Ryan in Ohio, denying Democrats a chance to pick up the open seat. In New Hampshire, Trump-styled Republican Don Bolduc failed to oust Democratic Sen. Maggie Hassan. In Alaska, Republican Sen. Lisa Murkowski failed to clear a majority, sending the race to ranked-choice voting.

The Senate battleground remained focused on several deeply contested states — Georgia, Arizona, Nevada and Wisconsin remained too early to call into Wednesday morning. The 50-50 Senate is now in Democratic hands because Vice President Kamala Harris can cast a tie-breaking vote.

Divided government has historically offered the possibility of bipartisan deal-making. But Republican candidates campaigned instead on a platform to stop Democrats.

“I do think that this will end up being a period of government that is defined by conflict,” said Brendan Buck, a former top aide to the past two Republican speakers of the House.

Without a unified agenda of their own, Republicans ran on threats of confrontations that could spark crises. They promised to cut federal spending, refuse to raise the nation’s debt limit and balk at supporting Ukraine in the war with Russia. It all pointed to potential gridlock.

“They’re going to make very clear that there’s a new sheriff in town,” Buck said.

McCarthy had recruited the most racially diverse class of House GOP candidates, with more women than ever. But it also included a new cadre of Trump loyalists, including election skeptics and deniers, some of whom were around the Capitol on Jan. 6.

Trump endorsed hundreds of candidates nationwide in this election cycle, though they were not always the first choices of McCarthy and Senate Republican leader Mitch McConnell. In an interview, the former president said he backed McCarthy for speaker, and he derided his old foe McConnell as a “lousy leader,” according to Fox News.

In a sign of the nation’s toxic political climate, Pelosi canceled most public appearances in the final week of campaigning after an intruder broke into her family’s San Francisco home in the middle of the night, demanding to know “Where is Nancy?” and bludgeoning her 82-year-old husband in the head with a hammer. Authorities have said the Oct. 28 attack specifically targeted the speaker’s home.

The election unfolded amid deep discontent. A majority of Americans – about 7 in 10 – disapprove of the way Congress is handling its job, according to AP VoteCast, an expansive survey of over 90,000 voters nationally. About 4 in 10 strongly disapprove.

In the House, several new Republicans were elected in redrawn Florida districts. Joining them will be 25-year-old Democrat Maxwell Frost — the first member of Generation Z to win a seat in Congress.

Far-right Rep. Marjorie Taylor Greene, a top Trump ally, won reelection in Georgia.

Incumbents were also holding on. In Ohio, Democratic Rep. Marcy Kaptur defeated J.R. Majewski, a Republican who was at the Capitol on Jan. 6.

Senate Majority Leader Chuck Schumer, a Democrat, was reelected in New York. Republican Sens. Rand Paul in Kentucky and Marco Rubio in Florida prevailed over their Democratic opponents. In Colorado, Democratic Sen. Michael Bennet also won reelection.

Vote counting could extend beyond Election Day in many states, and Georgia in particular could head to a Dec. 6 runoff if no candidate reaches the majority. Both parties have already filed legal challenges in some cases foreshadowing the court fights that may delay final results.

Democrats gained momentum over the abortion issue after the Supreme Court overturned the Roe v. Wade decision this summer, and they have been warning voters about MAGA conservatives, short for Trump’s “Make America Great Again” slogan.

But Republicans focused voter attention on closer-to-home issues such as inflation-fueled high prices and crime.

___

Follow the AP’s coverage of the 2022 midterm elections at https://apnews.com/hub/2022-midterm-elections. And learn more about the issues and factors at play in the midterms at https://apnews.com/hub/explaining-the-elections.