US dollar gains on Iran tensions as 2 central banks diverge