A Hungarian court has sentenced an Irish citizen to 14 years in prison for murdering an American tourist in Budapest in 2024.