The Nature Restoration Law has survived a dramatic vote in the European Parliament but only by a razor-thin margin.