Sun Valley residents vote at the polling station located at Our Lady of The Holy Church on election day at the Sun Valley's Latino district, Los Angeles County, on November 6, 2012 in California.AFP PHOTO /JOE KLAMAR        (Photo credit should read JOE KLAMAR/AFP/Getty Images)
JOE KLAMAR/AFP/AFP/Getty Images
Sun Valley residents vote at the polling station located at Our Lady of The Holy Church on election day at the Sun Valley's Latino district, Los Angeles County, on November 6, 2012 in California.AFP PHOTO /JOE KLAMAR (Photo credit should read JOE KLAMAR/AFP/Getty Images)
Now playing
01:21
Why the 2018 midterm elections matter
senator bill nelson 11132018
CNN
senator bill nelson 11132018
Now playing
02:03
Nelson: Scott should recuse himself
Rep. Marsha Blackburn, R-Tenn., speaks to supporters after she was declared the winner over former Gov. Phil Bredesen in their race for the U.S. Senate Tuesday, Nov. 6, 2018, in Franklin, Tenn. (AP Photo/Mark Humphrey)
Mark Humphrey/AP
Rep. Marsha Blackburn, R-Tenn., speaks to supporters after she was declared the winner over former Gov. Phil Bredesen in their race for the U.S. Senate Tuesday, Nov. 6, 2018, in Franklin, Tenn. (AP Photo/Mark Humphrey)
Now playing
01:26
Meet the Republicans who held onto the Senate (2018)
Democratic congressional candidate Ilhan Omar is greeted by her husband's mother after appearing at her midterm election night party in Minneapolis, Minnesota, U.S. November 6, 2018. REUTERS/Eric Miller
Eric Miller/Reuters
Democratic congressional candidate Ilhan Omar is greeted by her husband's mother after appearing at her midterm election night party in Minneapolis, Minnesota, U.S. November 6, 2018. REUTERS/Eric Miller
Now playing
01:33
Minorities, LGBT make history in 2018 midterms
WJLA
Now playing
02:01
Hear from the Democrats who took back the House
CNN
Now playing
01:50
Abrams vows to remain in gubernatorial race
Spectrum News NY1
Now playing
02:05
Ocasio-Cortez: This is a movement for justice
KXAN
Now playing
02:07
O'Rourke congratulates Cruz on his victory
CNN
Now playing
01:57
Tapper: This is not a blue wave
CNN
Now playing
02:11
Van Jones: It's a rainbow wave
LAS VEGAS, NV - OCTOBER 20:  U.S. Rep. and U.S. Senate candidate Jacky Rosen (D-NV) speaks during a rally at the Culinary Workers Union Hall Local 226 featuring former U.S. Vice President Joe Biden on October 20, 2018 in Las Vegas, Nevada. Early voting for the midterm elections in Nevada begins today. (Photo by Ethan Miller/Getty Images)
Ethan Miller/Getty Images
LAS VEGAS, NV - OCTOBER 20: U.S. Rep. and U.S. Senate candidate Jacky Rosen (D-NV) speaks during a rally at the Culinary Workers Union Hall Local 226 featuring former U.S. Vice President Joe Biden on October 20, 2018 in Las Vegas, Nevada. Early voting for the midterm elections in Nevada begins today. (Photo by Ethan Miller/Getty Images)
Now playing
01:45
CNN projects Jacky Rosen elected to US Senate
Additional Embargo:   Additional Source(s):    Date Shot: 11/6/2018   Shipping/Billing Info:     Description: Projects: None  Cost Center: Atlanta National Desk / 20100101   Created By: DHackett  On: 1541544461  --------------------------------------------------------------------------------
WSB;
Additional Embargo: Additional Source(s): Date Shot: 11/6/2018 Shipping/Billing Info: Description: Projects: None Cost Center: Atlanta National Desk / 20100101 Created By: DHackett On: 1541544461 --------------------------------------------------------------------------------
Now playing
00:59
Brian Kemp: Confident victory is near
2018 Elections Primary Clean path
CNN
2018 Elections Primary Clean path
Now playing
01:49
Pelosi: Tomorrow will be a new day in America
CNN
Now playing
01:36
The Democrats who might lead the House
CNN
Now playing
01:54
DeSantis thanks Trump in victory speech
KXAN
Now playing
01:44
Cruz: This election was a battle of ideas
Washington CNN —  

The out-of-nowhere upset of Democratic Rep. Joe Crowley in Tuesday’s New York primary has stunned the Democratic establishment and shook up the party’s likely line of succession to become the next House speaker.

Crowley was ousted from his Queens district by Democratic socialist Alexandria Ocasio-Cortez, a 28-year-old Latina running her first political campaign. She is now likely to be the youngest woman ever elected to the House.

It was the most shocking result of 2018’s political season so far, and – though Democrats have avoided intra-party feuds so far this year – could signal a restive base as the 2020 presidential primary approaches.

“I’m floored,” a senior Democratic House aide told CNN.

Crowley, the No. 4-ranking House Democrat, was widely seen as the likely successor to House Democratic leader Nancy Pelosi. And because Pelosi is likely to have a hard time getting 218 votes to become speaker if Democrats win a narrow majority in November, that could have positioned Crowley to take the speakership against Rep. Steny Hoyer, now the House minority whip.

Two Democrats said the next speaker’s job is more unpredictable than ever – and Hoyer’s path to become speaker is far from clear. One Democrat said the jockeying will begin immediately.

“It’s clearly a signal that people want to get rid of the old and put in the new,” one Democratic House member told CNN.

Until now, there had been few signs of a mounting progressive insurgency. Kara Eastman had defeated former Rep. Brad Ashford in a Nebraska Democratic congressional primary and Democratic socialists had won down-ballot races in Pennsylvania and elsewhere. But progressives declined to challenge the party’s sitting senators, and in the most important election of 2017 – the Virginia governor’s race – Lt. Gov. Ralph Northam defeated his more liberal primary opponent, former Rep. Tom Perriello. Now, Ocasio-Cortez’s victory could embolden liberal challengers in both 2018 and 2020.

Crowley quickly conceded and backed Ocasio-Cortez, who said in her victory speech that “what we proved tonight is that sometimes the deep midnight and darkness that it feels in our political environment, that there is still hope for this nation.”

President Donald Trump, meanwhile, trolled Crowley, suggesting on Twitter – wrongly, given the overwhelmingly progressive makeup of New York’s 14th District – that Crowley lost because he was too mean to Trump.

Trump tweeted: “Wow! Big Trump Hater Congressman Joe Crowley, who many expected was going to take Nancy Pelosi’s place, just LOST his primary election. In other words, he’s out! That is a big one that nobody saw happening. Perhaps he should have been nicer, and more respectful, to his President!”

Trump, meanwhile, had more reasons to celebrate Tuesday night. The two candidates he had endorsed won their primaries, in a show of the influence the President has with GOP voters.

Gov. Henry McMaster’s victory against businessman John Warren in the Republican gubernatorial runoff came the day after the President traveled to South Carolina to campaign for him.

McMaster was forced into a head-to-head runoff against Warren after falling short of 50% of the vote in this month’s primary.

McMaster got the job because Trump named former Gov. Nikki Haley his ambassador to the United Nations. And McMaster was one of Trump’s earliest strong supporters within the party.

Trump told South Carolina supporters that a McMaster loss would be portrayed by the “fake news” as “humiliating” for the President.

“So please get your asses out tomorrow and vote,” Trump said.

His victory showed the power of Trump’s endorsement with GOP voters. It was the first of two major tests of the President’s influence of the night.

Trump’s endorsement also paid off Tuesday in New York, where CNN projects Donovan has held off a Republican primary challenge from convicted felon and former Rep. Michael Grimm.

Grimm was elected to the seat he was seeking to reclaim three times before resigning in early 2015 after pleading guilty to tax evasion. Donovan was voted in as his replacement five months later and was bidding for his second full term.

Despite Trump’s decision to back Donovan, Grimm cast himself as the more authentic backer of the President’s political agenda, highlighting Donovan’s votes against the GOP tax cuts and a House bill to repeal Obamacare. But Republicans in the district, which includes Staten Island and parts of Brooklyn, ultimately stuck with his replacement – whom Trump touted as the safer choice for Republicans in November.

Grimm also sought to make common cause with Trump when discussing his legal troubles, which he’s called – without any evidence – the rotten fruits of a political hit job commissioned by high-ranking Obama administration officials.

Heading into the primary, Donovan had cause for concern: A Siena College poll found that 54% of GOP primary voters believed Grimm would work better with Trump, despite the President endorsing Donovan.

“There is no one better to represent the people of N.Y. and Staten Island (a place I know very well) than @RepDanDonovan, who is strong on Borders & Crime, loves our Military & our Vets, voted for Tax Cuts and is helping me to Make America Great Again. Dan has my full endorsement!” Trump said on Twitter in late May.

He followed up: “Very importantly, @RepDanDonovan will win for the Republicans in November…and his opponent will not. Remember Alabama. We can’t take any chances on losing to a Nancy Pelosi controlled Democrat!”

Donovan will take on Max Rose, a combat veteran who’s a member of the Democratic Congressional Campaign Committee’s “Red to Blue” list of top-tier challengers.

Colorado, Maryland, Mississippi, Oklahoma, and Utah also held elections Tuesday – with runoffs in South Carolina and Mississippi and primaries elsewhere.

In Colorado, CNN projects Rep. Jared Polis won a competitive Democratic primary to replace outgoing Gov. John Hickenlooper. Polis held off former state treasurer Cary Kennedy and former state legislator Mike Johnston. If he wins in the fall, Polis would be the first openly gay man elected governor in the US.

Another progressive favorite, 2016 Bernie Sanders ally and former NAACP head Ben Jealous, won the Democratic gubernatorial primary to take on Republican Gov. Larry Hogan in Maryland.

In Utah, 2012 Republican presidential nominee Mitt Romney won the Senate primary and is now poised to cruise to election and become a major voice that could counter Trump in the Senate.

CNN’s Manu Raju and Dana Bash contributed to this report.