The move puts Budapest at odds with an EU measure designed to help Kyiv retain more potential recruits.