BP and Shell led Big Oil’s push into renewable energy. Now they are leading the retreat.