I'm having some trouble understanding how DFT can be used to obtain results for electronic structure calculations. We can assume that we're studying an $N$ electron atom with a fixed nucleus and want to get its ground state energy.
In Kohn-Sham DFT, we imagine a fictitious system of non-interacting particles, such that $\Psi(\mathbf r_1, \ldots, \mathbf r_N) = \prod_i \psi_i(\mathbf r)$. From this, we can construct the KS equations: $$\left[ -\frac 12 \nabla^2 + V_{ext}(\mathbf r) + \int \frac{ \rho(\mathbf r')}{|\mathbf r- \mathbf r'|} d \mathbf r' + V_{XC}(\mathbf r) \right] \psi_i = E_i \psi_i. $$ The middle term is the Hartree potential. These equations can be solved self consistently. First, guess the form of the electron density and approximate the exchange-correlation potential. Then, at each iteration we solve these equations (I.E by diagonalisation) to get the $\psi_i$ and then update the density to construct a new Hamiltonian since $\rho(\mathbf r) = \sum_{i=1}^N |\psi_i(\mathbf r)|^2$. Until the eigenvalues converge. This allows us to get the correct ground state charge density (through the variational theorem).
What I don't understand is how to proceed from there. Are the eigenvalues of the KS Hamiltonian equal to the energy spectrum of the true system? If so, why? And if not, how is the correct ground state energy found from here?