The balloting included residents of four Ukrainian regions which Moscow illegally annexed after the war began, but does not fully control.