A federal judge has sentenced Rod Blagojevich to 14 years for corruption that included trying to sell or trade an appointment to the Senate seat vacated by President Barack Obama.