The Las Vegas Grand Prix and Formula 1 have officially confirmed a deal to keep racing through 2027, although both parties want to continue beyond the current decade.