Coherent control of resonant light-matter interaction