France beat Scotland 2-1 to progress to the quarter-final stage of the UEFA European Under-17 Championship.