The new law comes before a planned national vote set for December 24 under a UN-led peace process for Libya.