If an orbiting electron creates a toroidal magnetic field like a ring of current does, and this field is oriented opposite to the magnetic field line the electron is orbiting, then why is the electron not repelled by the applied field that it orbits (driven along the field line) like 2 end to end bar magnets of opposite polarity?
If the applied magnetic field is uniform then there cannot be a net force on the current loop. This is because the magnetic force $\text d\mathbf F$ experienced by a small part of the loop of length $\text dl$ of current $I$ is given by $$\text d\mathbf F=I\text d\mathbf l\times\mathbf B$$
If we integrate this around the loop for a uniform field you will find that the net force is $0$ (and the loop will be either under stretching or compressive forces). So for the example given in the comments, a ring of current inside a solenoid would not experience a net force in the direction of the solenoid (it could experience a torque though)
However if the field is not uniform, then the net force will be non-zero in some direction. This is because around the loop the cross products will have non-zero components in the same direction. It is in this direction that the net force will be in. See the picture below