Manchester City came from behind to beat Club Brugge 3-1 and safe their place in the Champions League playoffs as unseeded side.