A Paul Pogba header and an injury-time own goal by Joseph Yobo took France through to the quarter-finals with a hard-fought 2-0 win over Nigeria in Brasilia.