Germany's Bundestag has approved the introduction of a windfall levy on excessive earnings from renewable energy generation as part of a package of measures meant to cap gas and electricity prices through April 2024.