Syria agrees to U.N. resolution