By NAZILA FATHI and MARK LANDLER
TEHRAN — An Iranian-American journalist sentenced to eight years in prison on charges of spying for the United States was released Monday, a legal turnabout that removes an obstacle to President Obama’s opening to Iran but illustrates the volatility of the Iranian government.