Saudi blogger Raif Badawi, whose flogging sentence caused an outcry, has been awarded the European Parliament's Sakharov human rights prize.