FRANKFURT—Germany’s economy grew modestly in the three months through September, showing surprising strength ahead of what economists expect to be a bleak period as the region’s households and businesses wrestle with surging interest rates and prices fanned by Russia’s war in Ukraine. The fate of …