The agreement could make it easier for Mr Trump to punish government employees who leak information to reporters.