Incumbent Sen. Jon TesterJonathan (Jon) TesterOvernight Defense: Over 500 amendments proposed for defense bill | Measures address transgender troops, Yemen war | Trump taps acting VA chief as permanent secretary Not only do we need to support veterans, but their caregivers, too Trump Jr. prepares to hit the campaign trail ahead of midterms MORE (D-Mont.) is projected to win reelection to the Senate over Rep. Denny Rehberg (R).

The Associated Press called the race Wednesday morning; it was too close to call late Tuesday night.

According to CNN, Tester had a 49-45 lead over Rehberg on Wednesday morning, with 83 percent of precincts reporting.

The victory adds to a great night for Senate Democrats, who so far have expanded their majority by two seats. A final seat being vacated by retiring Sen. Kent Conrad (D) in North Dakota remains in play, but Democrat Heidi HeitkampMary (Heidi) Kathryn HeitkampOvernight Defense: Senate confirms Haspel as CIA chief | Trump offers Kim 'protections' if he gives up nukes | Dem amendments target Trump military parade Hillicon Valley: Lawmakers target Chinese tech giants | Dems move to save top cyber post | Trump gets a new CIA chief | Ryan delays election security briefing | Twitter CEO meets lawmakers Senate confirms Haspel to head CIA MORE has a narrow lead over Rep. Rick Berg (R-N.D.).

Tester was a top GOP target from the beginning of the year, and Republican outside groups spent millions of dollars to defeat him. But his centrist profile and reputation as a hard-working Montana farmer helped Tester run comfortably ahead of President Obama in the Republican-leaning state.

Tester also was effective at painting Rehberg as an out-of-touch millionaire, attacking the congressman for suing the Billings, Mont., fire department and using a clip of Rehberg describing lobbying as an "honorable profession" in ads.

Tester thanked his campaign supporters in a Wednesday morning press conference in Montana.

"It is an honor to accept your trust in sending a Montana farmer with Montana values back to the United States Senate," he said.

Just before Tester spoke, Rehberg congratulated Tester.

The voters of our state have spoken, and I respect their decision. Senator Tester and I share an abiding love for Montana and America, a value which transcends political party or disagreements on matters of policy.

A confirmed Tester victory gives Democrats a 52-45 margin in the Senate over Republicans. Two Independents in the Senate are expected to caucus with Democrats.

A Rehberg loss could set him up to run against Montana's other Democratic senator, Max BaucusMax Sieben BaucusClients’ Cohen ties become PR liability Green Party puts Dem seat at risk in Montana Business groups worried about Trump's China tariffs plan MORE, in 2014. Rehberg and Baucus have some history, stemming from Rehberg's 1996 attempt to win Baucus's Senate seat.

In that contest, information about Baucus's divorce was leaked to the press, which many agree created bad blood between the two candidates.

—Erik Wasson contributed.