Chelsea are through to the UEFA Champions League knockout stages despite a 1-0 loss to Basel at St Jakob Park.