The Orbital Histories of Magellanic Satellites Using Gaia DR2 Proper Motions