Turkish court rules Kurdish leader's jailing violated rights