Twenty-two Democrats broke ranks and voted Tuesday for the resolution condemning the Obama administration for not giving Congress advance notice of the exchange of Army Sgt. Bowe Bergdahl for five Taliban prisoners.

Voting in favor of the measure offered vulnerable Democrats in tough reelection races an opportunity to distance themselves from President Obama.

The 22 Democrats were Reps. John BarrowJohn Jenkins BarrowFormer lawmakers sign brief countering Trump's claims of executive privilege in Jan. 6 investigation Draft Georgia congressional lines target McBath, shore up Bourdeaux On The Trail: The political losers of 2020 MORE (Ga.), Ami BeraAmerish (Ami) Babulal BeraMajor abortion rights group names new president Democrats call for removing IRS bank reporting proposal from spending bill Biden remarks on Taiwan leave administration scrambling MORE (Calif.), Bruce BraleyBruce Lowell BraleyFormer lawmakers sign brief countering Trump's claims of executive privilege in Jan. 6 investigation The Memo: Trump attacks on Harris risk backfiring 2020 caucuses pose biggest challenge yet for Iowa's top pollster MORE (Iowa), Julia BrownleyJulia Andrews BrownleyCongress can make progress on fighting emissions with Zero Food Waste Act House passes veterans contraception, LGBTQ business bills previously blocked by GOP Overnight Defense: Tucker Carlson comments cause military rage | Capitol guard duty questioned | Vet who served in Marine One unit charged in insurrection MORE (Calif.), Cheri BustosCheryl (Cheri) Lea BustosCongress needs to act on the social determinants of health Democrats brace for flood of retirements after Virginia rout Democrats fear Virginia is precursor to House drubbing MORE (Ill.), Jim Costa (Calif.), Henry Cuellar (Texas), Tulsi GabbardTulsi GabbardThe perfect Democratic running mate for DeSantis? Progressives breathe sigh of relief after Afghan withdrawal Hillicon Valley: US has made progress on cyber but more needed, report says | Democrat urges changes for 'problematic' crypto language in infrastructure bill | Facebook may be forced to unwind Giphy acquisition MORE (Hawaii), Pete GallegoPete Pena GallegoER doctor chosen to lead Hispanic Caucus 4 Texas GOP congressional primary runoffs to watch GOP candidate scores upset win in Texas state Senate runoff MORE (Texas), Joe GarciaJoe Antonio GarciaFormer Florida congressman fined 6K in campaign finance scheme Overnight Defense: Biden honors McCain at Phoenix memorial service | US considers sending captured ISIS fighters to Gitmo and Iraq | Senators press Trump on ending Yemen civil war Biden pays tribute to McCain at emotional memorial service MORE (Fla.), Dan Lipinski (Ill.), Jim MathesonJames (Jim) David MathesonMcAdams concedes to Owens in competitive Utah district Trump EPA eases standards for coal ash disposal Utah redistricting reform measure likely to qualify for ballot MORE (Utah), Mike Michaud (Maine), Patrick Murphy (Fla.), Beto O'Rourke (Texas), Gary Peters (Mich.), Collin Peterson (Minn.), Nick RahallNick Joe RahallA billion plan to clean the nation's water is murky on facts On The Trail: The political losers of 2020 We shouldn't allow politics to impede disaster relief MORE (W.Va.), Raul Ruiz (Calif.), Kurt Schrader (Ore.), Kyrsten Sinema (Ariz.) and Tim Walz (Minn.).

ADVERTISEMENT

Braley is running for Senate in one of the year's most competitive races, while Michaud is running for governor of Maine.

Barrow, Gallego, Peters, Peterson, Rahall, Ruiz and Sinema are considered among the most vulnerable House incumbents.

Other Democrats, meanwhile, are centrists who tend to break with their party despite not being in especially tough races, like Cuellar and Lipinski.

Matheson is a frequent defector, but he is retiring at the end of this Congress.

During floor debate, Barrow said the Bergdahl exchange would embolden terrorist groups to kidnap Americans as a means of freeing their own members.

“Negotiating with terrorists will only weaken this nation in the future and encourage other terrorists to kidnap Americans in an attempt to extort future prisoner exchanges,” Barrow said.