Nuclear deal a challenge for Rouhani as Iran hardliners close in