If NYT's source is his tweet[1], he "authorize[s] the toll free opening of the strait", not claiming Iran agreed to it.
[1] https://old.reddit.com/r/trumptweets/comments/1u5xpoe/061426...