How does laser cooling work?

You used momentum and Doppler shift to explain slowing down of atom !!  But how does energy comes into the picture ? where does energy of the photon goes ? Or if we look it from 1st law of thermodynamics, Energy supplied must go some where !! Where ?