On Saturday and Sunday, Ukrainian forces reclaimed a wide swath of territory in the northeast in a swift-moving counteroffensive that appeared to catch the Russians by surprise.