Simone Biles made a remarkable comeback after a two-year hiatus to capture a record eighth national title.