Magnetic control of polariton spin transport