FRANKFURT, Germany — German Chancellor Olaf Scholz on Friday promised quick action to fix a budget crisis after a court decision blew a large hole in the almost-finished plan for next year and threatened to disrupt spending on efforts to fight climate change and cushion the impact of high energy prices caused by Russia’s invasion of Ukraine.

Scholz’s reassurances come as the budget crisis threatens to exacerbate problems in the world’s worst-performing major developed economy.

Europe’s largest economy contracted 0.1% in the July-to-September quarter as inflation eroded people’s willingness to spend. Germany is the only major economy expected to shrink this year, according to the International Monetary Fund.