Trump had earlier said on social media that the women's release could work in Iran's favour in negotiations.