What happens to the energy absorbed by Earth's surface and atmosphere?

They get radiated back into space as longer wave radiation.

Is there anything else I should add to this answer?

Thanks.