WASHINGTON—Control of the House of Representatives remained unsettled Sunday after Democrats won a crucial victory in Nevada to retain their hold on the Senate.

The GOP appeared on track toward winning the barest of House majorities, nonpartisan analysts said, but the final outcome hinged on races, mostly on the West Coast, that remain too close to call. Both parties were girding for results that might not be known for days.

Republicans officially have 212 House seats and Democrats have 204, according to Associated Press calls. A party needs 218 for a majority in the chamber. The GOP could end up with only a couple seats above that number, and it got a boost Sunday by flipping a seat held by Democrats in Oregon, according to AP.

In the district, Oregon’s 5th, Republican Lori Chavez-DeRemer, a former mayor, defeated Democrat Jamie McLeod-Skinner, who had advanced to the general by ousting incumbent Democratic Rep. Kurt Schrader in a primary.

Still, Democrats clung to the possibility of keeping the majority with earlier results going their way in Washington’s 3rd District.

There on Saturday, the AP declared Democrat Marie Gluesenkamp Perez the winner over Republican Joe Kent in a race that became more competitive when incumbent GOP Rep. Jaime Herrera Beutler, who had voted to impeach former President Donald Trump, was defeated in the primary. The contest joins several for Senate and governor on the list of races the GOP appears to have lost in part due to Mr. Trump’s continued influence on the party.

Democrat Marie Gluesenkamp Perez won a House race in Washington’s 3rd District that became more competitive after the incumbent GOP representative was defeated in a primary.

Photo: Taylor Balkom/Associated Press

Heading into the midterms, nonpartisan analysts had favored Republicans to hold that seat, where voters had picked Mr. Trump over President Biden in the 2020 presidential election by 4 percentage points.

“This is a big upset,” Dave Wasserman of the nonpartisan Cook Political Report said on Twitter. He noted it is the only race won by Democrats that he had rated as a lean or likely Republican victory.

Of the remaining uncalled competitive House races, a half-dozen were in California. They included the re-election contests of Democratic Reps. Katie Porter and Mike Levin and GOP Reps. David Valadao, Mike Garcia and Michelle Steel as well as one open seat. Both parties were also intensely watching close contests in Arizona, Colorado and Oregon.

The results of votes in several competitive House races in California have yet to be called.

Photo: patrick t. fallon/Agence France-Presse/Getty Images

While the contest for House control continued, Senate Democrats celebrated their victory and several races in Arizona remained too close to call including the gubernatorial race between Republican Kari Lake and Democrat Katie Hobbs.

Ms. Hobbs was ahead Saturday evening by over 1 percentage point, with thousands more ballots expected to be counted.

Democrats retained control of the Senate after Sen. Catherine Cortez Masto won a tight race in Nevada over Republican Adam Laxalt, according to AP. That victory gave Democrats the 50 seats they needed for a majority, regardless of the result of a runoff election in Georgia next month because Vice President Kamala Harris can break ties.

The clearest consequence of the Democrats’ win will be to give Senate Majority Leader Chuck Schumer (D., N.Y.) the power to confirm Mr. Biden’s nominees without help from the GOP, extending a string of judicial confirmations that he pushed through over the past two years. Senate control also will allow Democrats to more easily confirm any new executive-branch appointees, including cabinet officials, who may have faced long odds if Republicans took control.

It also marks a major disappointment for Republicans, who had banked on a late-breaking “red wave” to catapult them to a majority of at least a few seats in the Senate, which has stood at 50-50 for the past two years. Ahead of Election Day, nonpartisan analysts had favored Republicans to win back the House, while considering Senate control a tossup.

Republican control of the Senate, coupled with expected GOP control of the House, would have given the party more power to try to roll back some of Mr. Biden’s legislation and shape must-pass bills to fund the federal government or raise the debt ceiling.

With Ms. Cortez Masto and Sen. Mark Kelly (D., Ariz.) prevailing over Republican challengers, Democrats head to next month’s runoff in Georgia between Democratic Sen. Raphael Warnock and Republican Herschel Walker with control already in hand.

How People Voted

Results of survey of about 115,000 registered voters

The next question is whether Democrats can eke out a 51-49 majority or continue to operate under a power-sharing agreement with Republicans. With a 51-49 majority, Democrats who chair committees would be able to issue subpoenas and provide a counterbalance to a GOP-led House, which plans aggressive investigations of Mr. Biden, his family and administration. A current power-sharing agreement in the 50-50 Senate has blocked Democrats from issuing subpoenas without GOP support.

In the Senate, a 51st Democratic senator also would give the party slightly more flexibility on passing legislation. During the past two years, lawmakers maneuvered partisan bills through the evenly divided Senate using a technique known as reconciliation that is available only in narrow circumstances, but using such a process required all Democrats to agree if Republicans were united in opposition. That gave leverage to centrist Sens. Joe Manchin (D., W.Va.) and Kyrsten Sinema

(D., Ariz.), who forced the party to make major changes and cuts to its tax, healthcare and climate law originally dubbed Build Back Better.

Sen. Catherine Cortez Masto (D., Nev.) celebrated her win at a news conference Sunday in Las Vegas.

Photo: Ellen Schmidt/Associated Press

After the Nevada race was called, Ms. Cortez Masto tweeted, “Thank you, Nevada!”, and Mr. Schumer called the result of the Senate elections a “victory and a vindication for Democrats.”

Mr. Biden, who made congratulatory calls to Ms. Cortez Masto and Mr. Schumer from Cambodia, said of Democrats holding the Senate: “I feel good and I’m looking forward to the next couple years.”

Mr. Biden also noted the advantage his party would have in the chamber if Democrats could win Georgia as well. “It’s always better at 51” seats, he said.

The Democrats’ win in the Senate is a blow to Senate Minority Leader Mitch McConnell (R., Ky.), whose pathway to the majority narrowed after Democrats flipped a GOP-held seat in Pennsylvania and Republicans failed to win any Democratic-held seat. After the loss by doctor and television personality Mehmet Oz to Pennsylvania Lt. Gov. John Fetterman, Mr. McConnell’s pathway to victory had hinged on winning two of three final competitive states—Arizona, Nevada, and Georgia.

On Friday, a group of GOP senators called for a delay in leadership elections that are expected to occur next week, saying that “we are all disappointed that a Red Wave failed to materialize” and that “we need to have serious discussions within our conference as to why and what we can do to improve our chances in 2024.”

Senate Minority Leader Mitch McConnell’s pathway to becoming majority leader narrowed after Democrats flipped a seat in Pennsylvania.

Photo: JIM LO SCALZO/EPA/Shutterstock

Democrats were helped in their fight for the majority by superior fundraising—in the nine most competitive races, each Democrat raised more than the Republican. Their gamble that abortion access would be a top issue panned out, helping blunt the blows they took in the face of the highest inflation in four decades. According to voter surveys, swing voters often broke in their favor.

Meanwhile, some Republicans said Mr. Trump’s efforts to shape the GOP field backfired, after some pro-Trump candidates defeated other GOP candidates who could have had broader appeal with Democrats and independents in a general election.

Headed into Election Day, around a dozen Senate races were seen as potentially in play, including in Washington and Colorado, where Republicans had begun to hope that they could defeat incumbent Sens. Patty Murray (D., Wash.) and Michael Bennet (D., Colo.) in the face of Mr. Biden’s poor approval ratings and voter concern about inflation and crime. But those Democrats prevailed. Meanwhile, Democratic efforts to unseat Sen. Ron Johnson in Wisconsin or pick up an open seat in North Carolina also failed.

Write to Chad Day at Chad.Day@wsj.com