A Turkish court ordered the release on Friday of a Kurdish lawmaker jailed last year for criticizing Ankara’s military operation in Syria and on hunger strike for nearly three months.