Extinct human relatives left a genetic gift that helped people thrive in the Americas