German coalition parties have reached an agreement to reduce the electricity tax to the EU minimum and introduce a three-month fuel price cap for 2027.