A new study conducted by Stanford University has found that running the entire world on clean energy would pay for itself.