A late Leon Goretzka strike saved Germany from another group stage elimination and set up a Euro 2020 last-16 clash with England at Wembley.