A Turkish court Friday ruled against a government ban on YouTube that came after the video-sharing website was used to spread damaging leaked audio files from a state security meeting.