Supreme Court agrees to hear greenhouse gas case