Japan launched a spacecraft to collect rocks from Phobos, one of Mars’s moons. The samples could help explain how the solar system and life on Earth began.