They didn't vote to be annexed. Ticking a checkbox on a ballot with armed soldiers behind your back is not voting. Any referendum carried out by an occupying force and followed by an annexation is against international law, specifically Article 47 of the Fourth Geneva Convention, not to mention the UN Charter.