A tense battle in Recife was decided by Thomas Müller's clinical strike, securing top spot in Group G for Germany.