SC ruling on martial law