UN hails Libya deal on constitutional basis for polls