Ukraine was a Sobiet republic under the USSR, as was Russia. Ukraine also took other military stuff, the Black Sea Fleet was fiercly discussed issue as well. Economically and politically Ukraine didn't have much of a choice, sure. Legal ownership wasn't the propblem so.