Ireland took a step closer to becoming the first country to divest its sovereign wealth from the fossil fuel industry.