A capsule containing a sample from a distant asteroid has been successfully returned to Earth and will soon be available for study.