Dollar firm as war widens in Middle East