NASA’s Kepler space telescope has come to the end of its mission to hunt for Earth-like planets in the galaxy.