US stocks end higher as oil, rate fears ease on hopes of progress in Iran talks