Germany to spend billions to tackle high energy prices