The specter of a prolonged crunch in energy supplies has faded, but the disruption could take months to unwind.