Yemen rivals recognize UN resolution, legitimacy: UN