Israel has agreed to the temporary ceasefire, noting that the ceasefire is subject to Iran's reopening the Strait of Hormuz, a White House official told NBC News.