The top court’s intervention came after it found apparent deficiencies in the very foundation of the state’s action