Erling Haaland ended his goal drought as Manchester City sneaked into the last 16 of the Champions League with a 2-0 win over Galatasaray.