A conflict that was supposed to be brief has sent oil prices soaring and raised the risk of a worldwide recession.