Shell and the environmental campaign group Greenpeace have settled a multimillion-pound lawsuit brought over an at-sea protest.