A Turkish court on Friday released a Kurdish lawmaker who was jailed last year for criticising Ankara’s military operation in Syria and has been on hunger strike for nearly three months.