Royal Dutch Shell said Friday that it had closed a valve from which oil was spilling into the North Sea, calling it a “key step” in stopping the leak at its Gannet Alpha platform.