Prosecutors had asked for a gag order to stop the former president from commenting about law enforcement.