Multi-phase galaxy formation and quasar absorption systems