A MUSE study of the inner bulge globular cluster Terzan 9: a fossil record in the Galaxy