The approval of the North Sea oil fields has been quashed while a revised environmental impact assessment is submitted.