Oil prices spiked higher on Friday after crude-producing nations agreed to limit their output through the end of 2018.