How does the increasing carbon dioxide level in the atmosphere influence the amount of energy leaving earth's atmosphere but not the quantity coming from the sun?

Radiation from the sun comes to earth in the form of ultraviolet waves. The more harmful ones are blocked by the ozone layer and the useful ones come through the atmosphere unhindered and warm the earth. This warmth then rises in the form of infrared rays. Infrared heat is trapped by greenhouse gases, so not as much heat leaves the earth as enters it.
Radiation from the sun comes to earth in the form of ultraviolet waves. The more harmful ones are blocked by the ozone layer and the useful ones come through the atmosphere unhindered and warm the earth. This warmth then rises in the form of infrared rays. Infrared heat is trapped by greenhouse gases, so not as much heat leaves the earth as enters it.