Equation \eqref{eq:sp1} represents the reduced state of the system after tracing over environment.(Page number 358)
$$\mathcal{E}(\rho) = \mathrm{tr}_{env}(\lbrack U(\rho \otimes \rho_{env} )U^{\dagger}\rbrack). \tag{8.6} \label{eq:sp1}$$
And then they say in page 359 that initially $\rho_{env} = |0\rangle\langle0|$ and then we apply $U$ to the combined state.(here $U$ is CNOT). The equation \eqref{eq:sp1} becomes (after plugging these values)
$$ \mathcal{E}(\rho) = P_{0}\rho P_{0} + P_{1}\rho P_{1} \tag{8.7} \label{eq:sp2}$$ where $P_{m}=|m\rangle\langle m|$.
How are they arriving at \eqref{eq:sp2}?