State media in Iran say the country's supreme leader has pardoned two female journalists who reported the death of a woman in police custody in 2022.