On 2 October 2009, Ireland voted for the treaty in the second referendum, thereby removing one of Klaus's earlier objections to him signing the treaty. On 12 October 2009, the Czech government agreed to adopt Klaus's demand as its own assuming that the president would sign if they successfully negotiated the opt-out, and if the Constitutional Court ruled that the treaty was compatible with the Czech constitution. The opt-out was agreed by other member states of the EU in the European Council on 29 October 2009.