Europe's Parliamentary Assembly has voted to confirm that Assange was held as a political prisoner.