German lawmakers approve contested cuts to farmers' fuel subsidies and a revamped 2024 budget