The second law is not violated because the Earth is not a closed system.
Also to a very good approximation, we emit what we absorb. When averaged over a long period, that approximation gets better. (It has been somewhat worse over the last century though.)
Also to a very good approximation, we emit what we absorb. When averaged over a long period, that approximation gets better. (It has been somewhat worse over the last century though.)