In a dramatic last-minute scramble, the U.S. Congress has managed to pass a stopgap spending bill to avert a federal government shutdown - but only just. With the midnight funding deadline looming, the Senate approved the legislation in an 85-11 vote, narrowly avoiding a crisis that could have disrupted everything from law enforcement to national parks.

The bigger picture here is that this temporary fix merely kicks the can down the road. The real battle is still to come, as the incoming Trump administration and a Republican-controlled Congress will now have to hash out a longer-term spending plan in the new year. And with President-elect Trump's recent vocal opposition to the bipartisan deal, the path ahead remains uncertain.

A Chaotic Week in Congress

What this really means is that Congress has endured a week of political turmoil, with the president-elect and his allies torpedoing an initial compromise agreement before ultimately accepting a stripped-down version. As Reuters reports, Trump and billionaire Elon Musk - who the president-elect has tapped to lead his push for government reform - were instrumental in sinking the initial bipartisan deal.

This left House Speaker Mike Johnson scrambling to cobble together a new bill that could pass both chambers. And while the final version did clear Congress, it came at the cost of removing key provisions sought by Democrats, including measures to suspend the federal debt limit. The Associated Press reports that Trump's demand to lift the debt ceiling was a major sticking point that triggered a revolt among Republicans, ultimately leading to the deal's collapse.

Kicking the Can Down the Road

So while the government has been spared from a disruptive shutdown - at least for now - the underlying issues remain unresolved. Congress has merely punted the spending fight into the new year, when the incoming Trump administration and a fully Republican-controlled legislature will have to hash out a longer-term plan.

And with Trump's recent saber-rattling on Iran and other foreign policy challenges, the political landscape is likely to remain volatile. As one Republican lawmaker told Reuters, "We'll have more influence next year, when we'll have majorities in both chambers of Congress and Trump will be in the White House." But whether that translates into a smooth path forward remains to be seen.