Bill ending nearly all greenhouse gases in New York nears approval