Phase-dependent light propagation in an atomic vapor