Ireland will become the first country to stop public investments in the fuels when its law passes.