Electrical control of spin relaxation anisotropy during drift transport in a two-dimensional electron gas