NASA’s asteroid sample capsule has returned to Earth, giving information about planet and solar system formation.