Manipulating spin transport with ferroelectric polarization