Manchester City earned a 0-0 draw at Dortmund that was enough for both teams to qualify from their Champions League group.