(CNN) Democratic Sen. Jon Tester will win a third term in the Senate, CNN projects, outlasting millions of outside spending and an intense focus on the race from President Donald Trump. 
 
 Tester was widely seen early in the cycle as a vulnerable Democrat due to the fact Trump won the state by 20 points just two years ago. But Tester's unique brand as a farmer from Big Sandy and personal connection to the state provided a contrast to Republican Matt Rosendale, whose ties to the state were constantly in question. 
 
 Tester, like other Democrats running in red states, routinely pledged throughout the campaign to work with Trump when needed, even running TV ads touting his work with Trump. 
 
 "Washington is a mess but that is not stopping me from getting bills signed into law by President Trump," Tester said in his first campaign ad 
 
 That relationship with Trump frayed, though, after Tester led the charge against Ronny L. Jackson, the former White House physician who Trump picked to lead the Department of Veterans Affairs. Tester, the top Democrat on the Senate committee that oversaw Jackson's confirmation, accused Jackson of handing out prescriptions "like candy" on foreign trips, accusations that eventually sunk his nomination. 
 
 Read More ||||| Montana Senator Jon Tester shakes hands with Jack Pinski Tuesday, Nov. 6, 2018, at his election party in Great Falls, Mont. (Thom Bridge/Independent Record via AP) (Associated Press) 
 
 Montana Senator Jon Tester shakes hands with Jack Pinski Tuesday, Nov. 6, 2018, at his election party in Great Falls, Mont. (Thom Bridge/Independent Record via AP) (Associated Press) 
 
 WASHINGTON (AP) — The Latest on the midterm elections (all times local): 
 
 1 p.m. 
 
 Montana Democrat Jon Tester has won a third Senate term, beating Republican Matt Rosendale, the state auditor. 
 
 President Donald Trump had taken a personal interest in defeating Tester, and had visited the state to campaign against the incumbent. Trump had said he wanted to make Tester pay at the polls for helping detail Trump's first nominee to lead the Department of Veterans Affairs. 
 
 Tester is the top Democrat on the Senate Veterans' Affairs Committee. 
 
 Tester insisted that Montana voters across the political spectrum would support him after examining his record. 
 
 Trump held four rallies in Montana and sent his eldest son and Vice President Mike Pence to headline more appearances. Rosendale also got help from outside cash that poured into the race. 
 
 __ 
 
 10:20 a.m. 
 
 In the race for Connecticut governor, Republican Bob Stefanowski has conceded to Democrat Ned Lamont. The Associated Press hasn't yet called the race. 
 
 Stefanowski says Lamont has won "fair and square." 
 
 Lamont, who's a businessman, would succeed Dannel P. Malloy, a Democrat who didn't seek a third term. Lamont has run for office before, losing bids for the Senate in 2006 and for governor in 2010. 
 
 Lamont has pledged to be a "firewall" between President Donald Trump's policies and what Lamont calls "Connecticut values." 
 
 ___ 
 
 9:25 a.m. 
 
 Democrats have regained control of the House from President Donald Trump's Republican Party in the midterm elections. 
 
 There was a revolt in the suburbs Tuesday against the GOP, and the political upheaval now threatens what's left of Trump's agenda. 
 
 But on Election Day, Republicans added to their edge in the Senate and prevailed in some key governor's race. 
 
 All in all, Republicans beat back the potential of big Democrat gains across the board. The "blue wave" that some feared never fully materialized. 
 
 The mixed verdict in the first nationwide election of Trump's presidency showed the limits of his hard-line immigration rhetoric in today's political landscape, where college-educated voters in the suburbs rejected his warnings of a migrant "invasion." 
 
 But blue-collar voters and rural America embraced his aggressive talk and stands.
– Jon Tester has been re-elected to the Senate. The Montana Democrat beat Republican Matt Rosendale, the state auditor, to win his third term. President Trump had taken what the AP calls a "personal interest" in defeating Tester, visiting Montana to campaign against him at four rallies, plus sending his eldest son and Vice President Pence for other appearances. CNN refers to Trump's "intense focus" on Tester. Tester, the top Democrat on the Senate Veterans' Affairs Committee, helped to derail Trump's first nominee to lead the Department of Veterans Affairs. (More in midterms: Georgia candidate is hoping for a runoff; Florida candidate is calling for a recount.)