Legge, a 44-year-old British driver, was the first woman to race in any NASCAR Cup Series race since Danica Patrick in 2018.