Oil prices pulled back as investors grew more optimistic that diplomatic efforts could prevent another escalation in the Middle East.