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 BarrowOn The Trail: The political losers of 2020 Republican wins Georgia secretary of state runoff to replace Kemp The most important runoff election is one you probably never heard of MORE (Ga.), Ami BeraAmerish (Ami) Babulal BeraFormer GOP lawmaker jumps into California recall election Democratic lawmakers propose B hike for State Scars of Capitol attack permeate high-security inauguration MORE (Calif.), Bruce BraleyBruce Lowell BraleyThe Memo: Trump attacks on Harris risk backfiring 2020 caucuses pose biggest challenge yet for Iowa's top pollster OPINION | Tax reform, not Trump-McConnell feuds, will make 2018 a win for GOP MORE (Iowa), Julia BrownleyJulia Andrews BrownleyOvernight Defense: Tucker Carlson comments cause military rage | Capitol guard duty questioned | Vet who served in Marine One unit charged in insurrection Voters elected a record number of Black women to Congress this year — none were Republican House Democrats eyeing much broader Phase 3 stimulus MORE (Calif.), Cheri BustosCheryl (Cheri) Lea BustosGOP campaign chief confident his party will win back House The Hill's Morning Report - Presented by the National Shooting Sports Foundation - At 50 days in charge, Democrats hail American Rescue Plan as major win House Democrats' campaign arm lifts ban on consultants who work for primary challengers MORE (Ill.), Jim Costa (Calif.), Henry Cuellar (Texas), Tulsi GabbardTulsi GabbardTulsi Gabbard blasts new House rules on gender neutral language as 'height of hypocrisy' A vaccine, a Burrito and more: 7 lighter, memorable moments from 2020 Growing number of House Republicans warm to proxy voting 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 RahallOn The Trail: The political losers of 2020 We shouldn't allow politics to impede disaster relief Break the cycle of partisanship with infant, child health care programs 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.