Exact solution of the Schrödinger equation with the spin-boson Hamiltonian