The director and writer behind “Barbie,” “Little Women” and “Lady Bird” will help pick the winner of next year’s Palme d’Or, the festival’s main prize.