Royal Dutch Shell and its Nigerian subsidiary have lost a long-running dispute to charity Friends of the Earth, after a top European court found in favour of a group of Nigerian villagers who had brought a pollution case against the oil giant.