A grid penalty for Charles Leclerc threatens to end Ferrari's hopes of beating McLaren to the Formula 1 constructors' title.