NASA’s MAVEN spacecraft set out 10 months ago to study the atmosphere of Mars. Now it has arrived — and a happy celestial coincidence may offer it a two-for-one opportunity to study a comet that will pass close by.