Formula 1 canceled its contract with the promoter for the Russian Grand Prix amid Russia’s invasion of Ukraine, the racing league announced Thursday.