Diplomatic efforts lead to US-Iran pact