An Iraqi journalist who threw his shoes at then-US President George Bush in a protest against US involvement in Iraq has been sentenced to three years in prison.