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
(CNN) —  

Republican Rep. Martha Roby will survive a primary runoff in Alabama, CNN projects, defeating former Democratic congressman-turned-pro-Donald Trump conservative Bobby Bright.

Roby had been seen as vulnerable to a primary challenge since the 2016 election, when she insisted then-Republican nominee Donald Trump “step aside” after the “Access Hollywood” tape was made public. But she’s also been a reliable vote for the President’s agenda in the House. Trump endorsed Roby on Twitter last month and took credit for her victory Wednesday morning.

“Congratulations to Martha Roby of The Great State of Alabama on her big GOP Primary win for Congress. My endorsement came appropriately late, but when it came the “flood gates” opened and you had the kind of landslide victory that you deserve. Enjoy!” Trump tweeted.

Vice President Mike Pence also played a role in Roby’s victory Tuesday, recording a robocall for her campaign and tweeting several times that both he and Trump supported her.

Roby’s win could be seen as a sign that Trump’s endorsement carried some weigh in Alabama, a state that famously ignored the President’s in-person pleadings and selected former judge Roy Moore over Trump-backed interim Sen. Luther Strange in a primary runoff last year. Moore, who was then endorsed by Trump in the general election, went on to lose the Senate race to Democrat Doug Jones.

Road to the runoff

Roby’s criticism of Trump left her looking vulnerable immediately after the 2016 election, and four Republicans jumped into the primary to challenge her.

She finished with 39% support in June’s primary – below the 50% threshold to avoid a runoff. Bright finished in second place, with 28% of the vote.

Roby’s campaign has emphasized her history of voting with Trump 97% of the time and how she aligns with him on the issue of immigration. She opposes abortion rights and touts her endorsement from the National Rifle Association.

Her campaign tweeted last week: “I’ve been proud to work w/ my colleagues in Congress & the Trump Admin. over the last year & a half to deliver meaningful results for Americans. I’m grateful to have POTUS’ endorsement in this election, & I’m eager to continue fighting for our shared conservative priorities.”

In a Fox News interview last week, Roby said she had “no regrets” about her 2016 comments.

Bright cited that remark on Twitter, saying it was “another prime example of her recklessness and lack of judgment.”

He also turned it into a television advertisement. “Martha Roby fooled us once. Don’t let her fool us again,” a narrator says in the spot.

For Bright, a 65-year-old former Montgomery mayor, Tuesday’s contest comes at the end of an unusual road back to the House seat he held – as a Democrat who voted for Nancy Pelosi as House speaker – from 2009 until Roby defeated him in 2010.

Bright has reinvented himself as a staunchly pro-Trump Republican. Per the Montgomery Advertiser, Bright has said he left the Democratic Party because of its move leftward.

“I will not let them taint me as a left-wing liberal,” Bright said last month at a campaign event. “People know Bobby Bright. They know I’m conservative.”