There's nothing wrong with what he did. If anything --- provided that he already knew that Raheel went to Saudi Arabia legally (though he definitely should NOT be serving under a young dumbass sectarian war-mongering prince) --- it sent a strong message to the N-league / pseudo-liberal lobby who were criticizing him for being soft on the army.
Relax. If Raheel went there legally, there's nothing to worry about. The only thing gained is that the CJP is not playing favorites --- something that actually helps the country's and judiciary's image.