A Turkish court on Friday ordered the release of an anti-government newspaper editor but the head of a national television network remains in custody in a controversial case that has strained relations with the European Union.