WASHINGTON (AP) — Republicans vaulted Rep. Elise Stefanik into the ranks of House leadership Friday, electing an ardent Donald Trump defender in hopes of calming their searing civil war over the deposed Rep. Liz Cheney's unremitting combat with the former president.

Stefanik, R-N.Y., a moderate turned Trump loyalist who's given voice to many of his false claims about election fraud, was elected as expected to the No. 3 post that Cheney, R-Wyo., held for over two years.

Backed by Trump and the House’s top two Republicans, Stefanik defeated challenger Rep. Chip Roy, R-Texas, by 134-46 in a secret ballot vote conducted behind closed doors. A member of the conservative House Freedom Caucus, Roy was a prohibitive long shot whose candidacy seemed a signal to GOP leaders that hard-right Republicans expect a robust voice moving forward.

Stefanik, 36, gives Republicans a chance to try changing the subject from the acrimonious fight over the defiant Cheney by installing a Trump loyalist — and one of the party’s relative handful of women in Congress — in a visible role.

But GOP schisms are unlikely to vanish quickly. Many hard-right conservatives have misgivings about Stefanik’s centrist voting record, tensions remain raw over Trump’s taut hold on the party and Cheney’s rancorous ouster, and Cheney has said she will remain a vocal foe of Trump.

At a time when Cheney and other anti-Trump Republicans are trying to pull the party away from him, Stefanik reaffirmed her view of his importance, underscoring his continued sway within the party.

“Voters determine the leader of the Republican Party, and President Trump is the leader that they look to," she told reporters after the vote. She added, “He is an important voice in the Republican Party and we look forward to working with him.”

Stefanik thanked her colleagues after her election, citing the Revolutionary War battlefield at Saratoga, New York, near her home. Describing themes similar to those Republicans often emphasize, Stefanik said Americans there fought for “liberty, freedom and a limited government,” according to a person who provided the comments on condition of anonymity.

Trump issued a statement congratulating Stefanik, adding, “The House GOP is united and the Make America Great Again movement is Strong!"

Roy had said he was running because Stefanik's voting record was too moderate and he didn't want Republicans to affirm the party leader's chosen candidate without a fight. After the vote, he downplayed GOP divisions.

“We had a great spirited debate," he told reporters. He added, “Now we’re going to get busy, pointing out how the Democratic Party is destroying America.”

Republicans booted Cheney out of leadership this week for repeatedly rebuking Trump for encouraging supporters who attacked the U.S. Capitol on Jan. 6 and for his lie that his 2020 reelection was stolen from him by fraudulent voting.

She has defiantly said she will continue lambasting Trump, who remains potent within the GOP, and would work to defeat him should he mount a 2024 bid to return to the White House.

Stefanik got an early start lining up votes to succeed Cheney, a decisive factor in leadership races. She’s also backed by Trump and House Minority Leader Kevin McCarthy, R-Calif., plus two of the House’s most influential conservatives: No. 2 House GOP leader Steve Scalise of Louisiana and Rep. Jim Jordan, R-Ohio.

Cheney, a daughter of former Vice President Dick Cheney and an ambitious GOP force in her own right, was among 10 House Republicans who voted this year to impeach Trump for inciting the Capitol riot. Since then, she’s battled Trump often and many Republicans ultimately turned against her, arguing that the dispute was a damaging distraction.

Stefanik has told colleagues she’d serve in the leadership job only through next year, according to a GOP lawmaker and an aide who spoke on condition of anonymity last week to discuss internal conversations. After that, she’d take the top GOP spot on the House Education and Labor Committee, which some consider a more powerful position because it can produce legislation on important issues.

Stefanik is a four-term lawmaker from an upstate New York district that in the past four presidential elections backed both Trump and Barack Obama twice. She was a Trump critic during his 2016 campaign, calling his videotaped comments on sexually assaulting women “just wrong” and at times avoiding stating his name, local news reports said.

Her voting record is among the most moderate of all House Republicans’, according to conservative groups’ ratings. She opposed Trump’s marquee 2017 tax cuts and his efforts to divert budget funds to build a wall along the Mexican border.

She hurtled to GOP prominence — and Trump’s attention — by defending him in 2019 during his first impeachment over his efforts to pressure Ukraine to produce political dirt on Joe Biden, a Democratic presidential contender at the time.

She has remained a Trump booster and joined him in casting doubt on the validity of the 2020 election, despite findings by judges and local officials that there was no evidence of widespread fraud. Hours after the Capitol attack, she voted against formally approving Pennsylvania’s state-certified electoral votes.

Trump reiterated his support for Stefanik and opposition to Roy on Thursday. Roy ran afoul of Trump in January when he voted to formally certify Trump’s Electoral College defeat, saying the Constitution left “no authority for Congress” to overrule states’ handling of the election.

LOOK: What are the odds that these 50 totally random events will happen to you?

Stacker took the guesswork out of 50 random events to determine just how likely they are to actually happen. They sourced their information from government statistics, scientific articles, and other primary documents. Keep reading to find out why expectant parents shouldn't count on due dates -- and why you should be more worried about dying on your birthday than living to 100 years old.