A Turkish court refused to release an employee of the U.S. consulate in Istanbul on Wednesday, in a trial on espionage charges that has damaged relations with Washington.