Analytical solution for the steady states of the driven Hubbard model