Italian Antifa activist accused of attacking people with a hammer in Budapest has been elected to the European Parliament, potentially avoiding jail due to parliamentary immunity.