US gave intel before Ukraine sank Russian warship, official says