Mass and shape of the Milky Way’s dark matter halo with globular clusters from Gaia and Hubble