A Syrian migrant convicted of illegal entry has failed in a bid to sue the Hungarian cabinet office for defamation when it used his case in a public questionnaire.