Four high-profile 2020 contenders voted no Thursday on a spending bill that would avert a government shutdown and allocate funding to border security measures, aligning themselves with progressive factions within the Democratic Party that could prove influential during the primaries.

Sens. Kamala Harris of California, Cory Booker of New Jersey, Elizabeth Warren of New Hampshire and Kirsten Gillibrand of New York voted no on the bill, which included $1.37 billion for barriers along the border and a $500 million increase in funding for Immigration and Customs Enforcement. Harris, Booker and Warren have officially declared their candidacies for 2020, and Gillibrand has formed an exploratory committee. Only one other senator – Ed Markey of Massachusetts – voted no on the bill.

With the bill poised to pass the chamber easily, it was a low-stakes "no" vote that suggests the senators expect border security and immigration funding to be a sticking point among primary voters. Democrats have rallied against the Trump administration's migrant family separation policy and decried the treatment of detained migrants in ICE and U.S. Customs and Border Protection care.

The lawmakers may also be trying not to alienate themselves from some of the more radical sects of the Democratic electorate, which have advocated for the elimination of ICE altogether.

Harris, speaking with McClatchy after the vote, described the vote as a "false choice" between keeping the government open and funding border security and anti-immigration measures. She cited the funding included for immigrant detention beds as part of her decision to vote down the measure.

In the final days of negotiations with congressional Republicans, Democrats pushed to decrease the number of beds alloted for migrant detention by nearly 25,000, but Republicans shirked the request.

Gillibrand also cited concerns with detention beds.

The bill didn't include a "cap on the number of beds" ICE uses when housing detained immigrants, GIllibrand told McClatchy when explaining her vote. "And I believe President Trump will continue to divert necessary resources from FEMA and from Homeland Security and anti-terrorism to fund his locking up of immigrants into for-profit prisons," she said.

Booker also decried the bill's funding for ICE and Customs and Border Protection, noting that measure allocated funding to the agencies "with little oversight or appropriate guardrails," according to Roll Call.

The move aligned the four 2020 hopefuls with progressive House freshmen Democratic Reps. Alexandria Ocasio-Cortez fo New York, Ilhan Omar of Minnesota, Rashida Tlaib of Michigan and Ayanna Pressley of Massachusetts, who all objected to the increase in funding for border and immigration agencies.

The Nation’s Capital: Shutdown, D.C. View All 29 Images

Several progressive groups, including immigrant-rights organizations, also denounced the measure.

"It is stunning that Republicans and Democrats are rewarding the agency responsible for separating children from their parents and expanding its budget after [Secretary of Homeland Security Kirstjen Nielsen] admitted she did not know how many people have died in her custody at a hearing in December," Lorella Praeli, deputy political director of the American Civil Liberties Union, said in a statement but came short of explicitly pressing lawmakers to vote no on the compromise.

A rafts of immigrant-rights groups criticized the bill, including United We Dream, which "unapologetically" urged lawmakers to vote the deal down.

Harris, Gillibrand, Booker and Warren's votes separated them from other potential presidential contenders. Sen. Amy Klobuchar of Minnesota, who has touted her ability to work across the aisle with Republicans, voted yes on the bill.

Sen. Bernie Sanders of Vermont, who is reportedly pondering another presidential run, also voted yes, citing the threat of a government shutdown.