Algeria progressed to the knockout phase of the World Cup for the first time after coming from a goal down to draw 1-1 with Russia.