CHICAGO (CBS/AP) — With the help of two upsets in Illinois, Democrats were able to take control of the U.S. House of Representatives on Tuesday, winning at least 222 seats overall, giving them the ability to block President Trump’s agenda, and launch investigations of his administration.

However, Republicans not only retained control of the U.S. Senate, but extended their majority there, depriving Democrats of the ability to block the president’s nominees, including Cabinet members, federal judges, and U.S. Supreme Court justices.

READ MORE: Chicago Police Officer Released From Hospital After Being Shot In Shopping Center Parking Lot At North And Sheffield Avenues

In Illinois, Democratic challenger Sean Casten defeated Republican U.S. Rep. Peter Roskam in the 6th District, which Republicans have held since 1973. Casten, a scientist and businessman took nearly 53 percent of the vote in an area covering the northern part of Cook County, and parts of Lake, McHenry, Kane, and DuPage counties.

Throughout the campaign, Casten hounded six-term incumbent Roskam for siding with Trump on various issues.

“A lot of good people didn’t vote for me, and that’s okay, right? Democracy is messy, and what matters is that people voted, and what matters now at this point is my job is to represent everyone in the district,” Casten said.

Despite losing a seat Republicans held for more than four decades, Roskam said he has no regrets.

“I did my best to reflect this constituency to the best of my ability,” he said.

In an even bigger upset, Democrat Lauren Underwood, defeated four-term Republican U.S. Rep. Randy Hultgren in the 14th District. Underwood, a progressive African American, took 52 percent of the vote in a district which is 86 percent white and widely seen as a Republican stronghold.

Hultgren had won his last election by 18 points.

“I just am so honored for the privilege that I’ve had to be able to represent the people of the 14th Congressional District. It has been the greatest honor of my life. I feel like we’ve accomplished a lot,” he said.

Underwood becomes the first female minority to represent a district covering parts of Lake, McHenry, Kane, Kendall, DuPage, DeKalb, and Will Counties.

“Many first-time candidates won tonight, and we bring with us a really specific focus on having impact. This is not politics as usual,” she said. “I’m not going to Washington for a position, or for power, or for any of those constructs. I’m going to Washington to serve the people of the 14th District, because they’re looking for policies to pass on health care. They’re looking for common-sense gun regulations. They are.”

In two other tight Congressional races in Illinois, Republicans Mike Bost and Rodney Davis narrowly held onto their seats in two downstate districts.

Widely viewed as a referendum on Trump’s presidency, Tuesday’s results in the midterm elections offered a split decision that revealed deep tensions in the American electorate — distances that could easily widen during two years of divided control. Trump’s aggressive campaign blitz, which paid off in some key victories, suggests he is likely to continue leaning into the fray.

Control of the House gives Democrats the ability to launch investigations into the president and stifle his agenda. But White House spokeswoman Sarah Huckabee Sanders minimized the magnitude of Democratic gains.

READ MORE: Chicago Weather: Pleasant Parade Weather Tuesday

“Maybe you get a ripple, but I certainly don’t think that there’s a blue wave,” she told reporters, pointing to several early Republican wins.

As for Republicans retaining control of the Senate, she called it “a huge moment and victory for the president.”

White House aides called on Democrats to work with Republicans in the next Congress.

Said White House counselor Kellyanne Conway, “I don’t know that there will be much of an appetite for Democrat lawmakers to spend all of their time, or most of their time or even a fraction of their time investigating, instigating, trying to impeach and subpoena people.”

In addition to his conversation with Pelosi, Trump called Republican Senate Majority Leader Mitch McConnell, Republican House Speaker Paul Ryan and Senate Minority Leader Chuck Schumer, as well as a number of candidates he backed during the race, the White House said.

Trump had aggressively campaigned in the closing days of the race, his focus on boosting Republicans in states that he carried in 2016. In the three races he targeted in the final day, Trump’s picks all won Tuesday night, with Republican Mike Braun defeating Democratic Sen. Joe Donnelly in Indiana, Republican Josh Hawley defeating Democratic Sen. Claire McCaskill in Missouri and Republican Attorney General Mike DeWine defeating Democrat Richard Cordray in the race for Ohio governor

The White House for days has been stressing the historical headwinds it faced: In the last three decades, 2002 was the only midterm election when the party holding the White House gained Senate seats. And only twice in the past eight decades has the president’s party picked up House seats in the midterms.

Trump spent election night watching returns with family and friends at the White House, his shadow looming large over the results.

Nearly 40 percent of voters cast their ballots to express opposition to the president, according to AP VoteCast, a national survey of the electorate, while about 25 percent said they voted to express support for Trump.

Anticipating the possibility of keeping the Senate but losing the House, aides in recent days had laid out the political reality to Trump, who could face an onslaught of Democratic-run investigations. In turn, Trump began trying out defensive arguments ahead of Election Day, noting that midterm losses are typical for the party in the White House, pointing out a high number of GOP retirements and stressing that he had kept his focus on the Senate.

Aides set up televisions in the White House residence for Trump, first lady Melania Trump and their guests to watch election results come in, with the sets tuned to different cable news channels. Among those expected were Trump’s adult children, White House aides, Republican officials and presidential friends.

The election served as a referendum of sorts on Trump’s racially charged appeals and the strength of the coalition that powered him to the White House — a group he will need again in just two years.

Overall, more voters disapproved of Trump’s job performance than approved — a finding that is largely consistent with recent polling. Voters scored Trump positively on the economy and for standing up “for what he believes in.” But the president received negative marks from voters on temperament and trustworthiness.

Still, about one-third of voters said Trump was not a factor in their votes.

Trump’s scorched-earth campaigning came to define the 2018 campaign. In the final days, he sought to motivate supporters with the battle over the confirmation of Supreme Court Justice Brett Kavanaugh.

Returning to his immigration-heavy 2016 playbook, Trump went on to unleash his full fury on a caravan of migrants slowly making their way to the southern border. His take-no-prisoners approach troubled many Republicans seeking to appeal to moderate voters in suburban House districts, but Trump prioritized base voters in the deep-red states that could determine the fate of the Senate.

MORE NEWS: Indiana Attorney General Files Lawsuit To Crack Down On Harassing Robocalls, And Effort May Help In Illinois Too

(© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)