Amnesty International has criticized Saudi Arabia for handing down a harsh verdict to a leading Shia cleric.