Japan launched a spacecraft to study one of Mars’s moons and bring samples back to Earth. The mission could reveal clues about how the Solar System formed.