President Obama has promised to help create millions of new green jobs, saying that doing so will spur the U.S. economy toward recovery — and has held out Spain as having “surged ahead” of the rest of the world by investing in renewable energy.