U.N. endorses Syria peace plan