Prime Minister Viktor Orban sought to justify the move, saying Hungary had to act to defend itself and describing the influx of migrants - many of them fleeing conflict in the Middle East and Africa - as a “Trojan horse for terrorism”.