Iran grants amnesty to 22,000 protesters