Judge James P. Kleinberg of the Santa Clara County Superior Court in San Jose, Calif., said in a 13-page ruling that Apple's interest in protecting its trade secrets outweighed the public's right to information about Apple and the right of bloggers to disseminate that.