Obama, Sarkozy agree on Mideast