US agrees to pay Iran $1.7B in debt settlement