Constraining Cosmic-ray Transport with Observations of the Circumgalactic Medium