Herschel describes an encounter between Lexell's Comet and Jupiter thusly:
Elijah Burritt's 1838 edition cites Herschel's words and summarizes this passage as "sufficient proof of the aeriform nature of the comet's mass." So Poe's mention of a comet "observed to pass among the satellites of Jupiter" was definitely inspired by Lexell's Comet.
thesis, "The Literary Uses of Astronomy in the Writings of Edgar Allan Poe." She used John Herschel's 1834 American edition as a source and connected "The Conversation of Eiros and Charmion" to both Biela's Comet and Lexell's Comet.
Poe's story alludes to the remarkable 1779 passage of Lexell's Comet through Jupiter's satellite system.