Fights over abortion and President Donald Trump’s U.S.-Mexico border wall have thrown Senate efforts to advance $1.4 trillion worth of agency spending bills into disarray, threatening one of Washington’s few bipartisan accomplishments this year.

A government shutdown remains unlikely, but agencies face weeks or months on autopilot while frozen at this year’s levels if the logjam isn’t broken.

At issue are 12 annual budget bills to fund the day-to-day operations of the government. The bills are needed to fill in the details of this summer’s budget and debt deal — which reversed cuts scheduled to slash the Pentagon and domestic programs and increased the government’s borrowing cap so it won’t default on its payments and Treasury notes.

Sweeping votes on July’s budget blueprint were a kumbaya moment in Trump’s polarized capital. But the Senate Appropriations Committee, tasked with filling in the details, has been beset by infighting in advance of a bill drafting session on Thursday.

Democrats complain that panel chairman Richard Shelby, R-Ala., following the lead of Majority Leader Mitch McConnell, R-Ky., is shortchanging the popular health and education measure to fund Trump’s $5 billion request for his border wall. They are also furious about Trump’s moves to raid $3.6 billion in military base construction projects to pay for 11 additional border fence segments totaling 175 miles (282 kilometers) in Texas, New Mexico and Arizona.

“That’s created a real problem,” said Sen. Patrick Leahy, D-Vt., the most senior member of the Appropriations Committee. “To take money from substandard schools for children of military people … that’s left a very bad taste.”

Sen. Dick Durbin, D-Ill., is poised with an amendment to an almost $700 billion Pentagon funding bill to block Trump’s unprecedented fiscal maneuvers, and he has several potential GOP allies on the committee.

Durbin’s threat doesn’t seem to have Republicans on edge, but Republicans say that Democrats such as Sen. Patty Murray, D-Wash., a savvy panel insider, are breaking summertime promises to avoid adding “poison pills” to the measures that could bog them down or attract Trump veto promises.

In particular, Murray is pressing to overturn a Trump executive order that takes away federal family planning funds from organizations like Planned Parenthood that counsel women about their abortion options.

The stakes were raised last month when Planned Parenthood announced it would stop accepting Title X federal family planning funds rather than comply with a Department of Health and Human Services edict to comply with the abortion counseling ban. Two Planned Parenthood clinics in Ohio closed this week.

Murray’s amendment would likely pass the Appropriations panel, where two pro-abortion rights GOP women would likely side with her. Facing that prospect, Shelby dropped the health funding measure from the agenda, along with a foreign aid bill that also faced an abortion controversy.

“His gag order changed Congress’ intent” to award family planning grants to organizations such as Planned Parenthood, Murray said. “Title X has had bipartisan support forever.”

The panel has a long history of smoothing over its differences on abortion in the interest of getting its legislation passed, however, and both sides want to press on and work out the challenges. House members like Appropriations Committee Chairwoman Nita Lowey, D-N.Y., are eager to start House-Senate conference committee talks aimed at legislation both chambers can pass, as is McConnell.

“We’re hopefully going to get past this little rough patch and get back to the agreement we all signed onto,” McConnell said Wednesday.

“We’ll get it done because there’s a desire to get it done,” Leahy said. “We know how to do it.”