Energy Dissipation in Multiphase Infalling Clouds in Galaxy Halos