The conflict raging in the Middle East will test the resilience of a global economy that has already contended with wars and trade disruptions over the past year.