President Barack Obama 's decision to attend the conclusion of the two-week conference , coming after phone consultations with other heads of state , was taken as a signal that an agreement was getting closer .