The government plans to change the law to void confidentiality agreements that silence staff.