The Democrats therefore needed to flip 23 seats in the House to gain a majority. It avoided a complete rout in the House, made gains in the Senate, and won important governorships in OH and Florida. By 1:30 a.m. Wednesday as the votes were still being counted, 92 had already been declared winners.
Now with Democrats in control of the House, if Trump's companies or other interests ignore their subpoenas or try legal maneuvers to delay or spurn them, they could face a contempt citation to the House floor.
"It's all about framing for 2020", said Joel Rubin, who was the State Department's liaison to the House during the Obama administration.
Mr Trump was expected to further address the results at a White House news conference later on Wednesday.
Part of the equation in this particular election was that Democrats' were disadvantaged by the fact that they were defending more seats than Republicans.
Mitt Romney, who won the Senate race in Utah, spoke strongly against Trump in 2016 but has since toned down the rhetoric and expressed somewhat measured support for several key points of Trump's agenda.
During the campaign, Pelosi urged candidates to focus on lowering health care costs and creating jobs with infrastructure investment, and she tamped down calls for impeachment.
And in a rare moment of practicality, the Republican leader, who is up for re-election in 2020, conceded that one of the GOP's signature efforts - the repeal of "Obamacare" - is all but dead.
"If the Democrats think they are going to waste Taxpayer Money investigating us at the House level, then we will likewise be forced to consider investigating them for all of the leaks of Classified Information, and much else, at the Senate level", the president said on Twitter. And in the aftermath of Tuesday's midterm elections, the Republican Party is increasingly exclusively the party of Trump. People of color and youthful voters proved to be pivotal - energized not by "moderate" candidates but by strong progressive populism.More news: Jerry Jones: Cowboys ‘Not In Anything’ Without Improved Play
More news: Ozone layer hole will 'totally heal within 50 years'
More news: Trump calls midterm elections tremendous success
Republicans must also loudly promote their success with two of the country's most enduring, important issues: the economy and national security.
As the returns came in, voters were on track to send at least 99 women to the House, shattering the record of 84 now. Notable exceptions included four women of color who will soon become members of the House: Alexandria Ocasio-Cortez (New York), Ilhan Omar (Minnesota), Ayanna Pressley (Massachusetts) and Rashida Tlaib (Michigan).
Mr Trump also congratulated the new governor-elect of Florida Ron DeSantis, who fended off a challenge from the Democrats.
Only two other Muslims have been elected to Congress, and both are men now in office: Ellison and Indiana Democratic Rep. Andre Carson.
President Trump wants as much as $5 billion to fund the southern border wall, but senior House Democratic advisers have told ABC News that Democrats, with a newly-reclaimed majority - will be loathe to provide one cent for that kind of funding.
Pelosi "loves this country, and she's a very smart woman", Trump said, adding that he had "a very warm conversation" with her on Tuesday. These voters are concerned that the nation they've known, and that has in many ways been remarkably successful, is slipping away from them. The polls also show Trump was a major factor: a minority of voters voted for Trump and his policies while the majority of voters displayed an anti-Trump sentiment. White voters without a college degree were more likely than those with one to say they approved, 64 percent to 49 percent.
Pennsylvania was particularly daunting for Republicans after court-imposed redistricting and a rash of retirements put several seats in play. This was especially true in states south of the Mason-Dixon Line that elected their first-ever African-American governors.
In the Senate, where 35 of the 100 seats were in play (and just 9 were Republican seats up for grabs), the Republicans have made at least 3 gains. The Republicans' three-seat expansion is a contrast to the 18 total seats lost by the Democrats in midterm elections in the Senate since 2010.
The GOP campaign committee distanced itself from eight-term Rep. Steve King of Iowa after he was accused of racism and anti-Semitism, but he won anyway. Beijing has traditionally preferred Republicans to Democrats, due to Democrats' emphasis on human rights and lesser enthusiasm for free trade. He may have used the migrant caravan in the final days to win in very red and rural places like Indiana, Missouri and Tennessee but in the states which matter for him to get re-elected next year, there is far more evidence that his attacking immigrants has done far more to hurt his re-election chances.