Rep. Nancy Pelosi Nancy PelosiHoyer: House should vote on COVID-19 aid — with or without a bipartisan deal Ruth Bader Ginsburg lies in repose at Supreme Court McCarthy threatens motion to oust Pelosi if she moves forward with impeachment MORE has her swagger back after a stellar week for the California Democrat, who is expected to make history next month by beginning a second Speakership in the House.

First, she baited President Trump Donald John TrumpBiden on Trump's refusal to commit to peaceful transfer of power: 'What country are we in?' Romney: 'Unthinkable and unacceptable' to not commit to peaceful transition of power Two Louisville police officers shot amid Breonna Taylor grand jury protests MORE into taking the blame for a potential government shutdown during a dramatic, televised showdown in the Oval Office.

The image of Pelosi strutting out of the White House meeting in a red wool jacket and pair of sunglasses quickly went viral, and even prompted the coat designer to bring back the discontinued piece.

ADVERTISEMENT

Then, the very next day, Pelosi struck a deal with a rebellious group of Democrats who were hell-bent on ousting her from leadership, winning over more than enough holdouts to deliver her the Speakership in January.

“Well, she’s been telling me some very funny jokes all week. So I think she’s gotten her sense of humor back in a big way,” Rep. Jamie Raskin Jamin (Jamie) Ben RaskinOn The Money: House panel pulls Powell into partisan battles | New York considers hiking taxes on the rich | Treasury: Trump's payroll tax deferral won't hurt Social Security House panel pulls Powell into partisan battles over pandemic Shakespeare Theatre Company goes virtual for 'Will on the Hill...or Won't They?' MORE (D-Md.) told The Hill on Thursday. “Politics is a tough business. You have to cherish the wins. And I think she’s feeling good.”

The high note follows a tense few weeks for Pelosi, who had been facing the biggest threat to her leadership during her decades-long political career.

Democrats seized back the House and picked up 40 seats last month, but in the days following the midterm elections, Pelosi was dogged by questions and headlines about her math problem in securing the Speaker’s gavel.

Dozens of Democratic candidates were critical of Pelosi or called for new leadership on the campaign trail, while a small but vocal group of incumbents had been agitating for a shake-up in the entrenched leadership ranks, where the top three Democrats have held a firm grip on power for more than a decade.

The anti-Pelosi insurgency released a letter in November that was backed by 16 members who vowed not to support Pelosi in the closed-door caucus vote or on the House floor. A handful of others promised to do the same.

But Pelosi, a shrewd political operator who has been a master of her caucus, began picking off her detractors one by one. She cut deals, deployed her deep network of powerful allies to lobby on her behalf and never let her critics see her sweat. And the 78-year-old lawmaker repeatedly refused to give in to demands from the “Never Nancy” camp that she publicly name an end date for her Speakership.

With the insurgency starting to crumble and Pelosi zeroing in on the gavel, some of the rebels brought a new proposition to the Democratic leader last week: agree to a proposal to impose term limits on party leaders, and we’ll deliver you the remaining Speaker votes. Pelosi, to the surprise of some insurgents, signaled she was open to the idea.

After a week of intense negotiations, Pelosi agreed to stage a vote on the proposal and promised to abide by the term limits regardless of whether they get adopted by the full caucus.

Their compromise, to be voted on in February, would cap the tenure of the top three leaders at three terms, with the option of a fourth if the candidate can win the support of two-thirds of the caucus. The limits would apply retroactively, meaning that the longest Pelosi could stay on is Speaker would be 2022. The constraints also would apply to Pelosi’s top two deputies: Reps. Steny Hoyer Steny Hamilton HoyerOVERNIGHT ENERGY: California seeks to sell only electric cars by 2035 | EPA threatens to close New York City office after Trump threats to 'anarchist' cities | House energy package sparks criticism from left and right House energy package sparks criticism from left and right Hoyer: House should vote on COVID-19 aid — with or without a bipartisan deal MORE (Md.) and James Clyburn (S.C.).

Some Pelosi allies say she already had enough Speaker votes locked down — and wasn’t planning to stay more than four more years anyway — but wanted to cut a deal with her critics in the interest of party unity, which will give Pelosi a boost of momentum as House Democrats head into their new majority.

“People are looking for a reason to support the person who is going to be the Speaker. The writing isn’t on the wall, it’s in the cement that Nancy is going to be the next Speaker,” Rep. Mark Pocan Mark William PocanOvernight Defense: Pentagon redirects pandemic funding to defense contractors | US planning for full Afghanistan withdrawal by May | Anti-Trump GOP group puts ads in military papers Democrats call for investigation into Pentagon redirecting COVID-19 funds Clark rolls out endorsements in assistant Speaker race MORE (D-Wis.), co-chairman of the Congressional Progressive Caucus, told The Hill.

“If she wants to give them something to save face, that’s something that good leaders often do.”

Even though Pelosi put out one fire, there is still another cloud handing over congressional leaders: a potential government shutdown, with current funding set to run dry next week.

ADVERTISEMENT

But Democrats feel like they have a stronger negotiating hand after Pelosi and Senate Minority Leader Charles Schumer Chuck SchumerCruz blocks amended resolution honoring Ginsburg over language about her dying wish Senate Democrats introduce legislation to probe politicization of pandemic response Schumer interrupted during live briefing by heckler: 'Stop lying to the people' MORE (D-N.Y.) headed to the White House on Tuesday to negotiate with Trump over his demand for border wall money in any spending package.

During the testy meeting, Pelosi got Trump to fully accept the blame if the government shuts down, called the president’s bluff that a $5 billion border wall bill could pass the House and put down his suggestion that she is weaker because of the anti-Pelosi insurgency.

“Mr. President,” she said, “please don’t characterize the strength that I bring to this meeting as the leader of the House Democrats, who just won a big victory.”

Pelosi was clearly riding high as she returned to the Capitol, where she waltzed into a closed-door Democratic meeting and started cracking jokes — including one mocking Trump’s manhood. Several days later, her campaign began fundraising off her battle in the Oval Office.

“It’s like a manhood thing for him. As if manhood could ever be associated with him,” Pelosi told members of the Democratic Steering and Policy Committee, according to sources inside the room.

“It was so wild,” Pelosi continued, describing the meeting to her colleagues. “It goes to show you: You get into a tinkle contest with a skunk, you get tinkle all over you.”