A judge criticised federal agents for leaking details about Diddy's sex trafficking investigation, issuing a gag order to protect trial integrity.