A reappearing supernova offers a new measure of the universe’s expansion