Former German international Lukas Podolski celebrated as the defending champions came back from the brink of World Cup elimination to beat Sweden.