Turkey's parliament has passed a framework law for the peace process with the Kurdistan Workers' Party (PKK).