The effort to pull some 900 ocean-monitoring buoys and sensors from the water drew backlash from scientists and lawmakers