Driving Galactic Outflows with Magnetic Fields at Low and High Redshift