An Iraqi journalist who threw his shoes at George Bush, then-US president, has been given a three-year jail sentence after pleading not guilty to assaulting a foreign head of state.