KABUL, Afghanistan — Afghan legislators on Monday approved a law to govern next year's presidential and provincial council elections, a key step toward conducting the polls.

The law still needs to be signed by President Hamid Karzai. Another law regulating the responsibilities of the electoral management bodies was passed over the weekend. Karzai also needs to sign off on that one. It was not known when Karzai would act.

Nelofer Ibrahimi, a parliamentarian from Badakhshan province, and Shah Gul Rezayee, a deputy from Ghazni, said the law was passed by a joint commission of 14 deputies from the upper and lower houses of parliament.

"The law directly will go to the president for approval," Rezayee said. "Both houses of the parliament gave their authorization to the joint commission, and the commission decision is final and acceptable by both houses of the parliament."

If endorsed by Karzai, completion of the two laws would clear the way for the elections on April 5 next year.

The electoral law defines the legal framework for the elections, while the structural measure governs the independent electoral commission and the appointment of its senior officials.

Karzai, whose second five-year term ends next year, is not allowed by law to seek a third.

The parliament has been debating the laws for several months. Their implementation is considered key for ensuring transparent and fair polls.

After the approval of the structural law, the United Nations Mission in Afghanistan urged Karzai to quickly endorse and enact the legislation.

Afghanistan's international backers have said a smooth political transition during the presidential elections is necessary to ensure the country's future stability once all foreign combat troops leave by the end of 2014.