Pete Hegseth’s proposed restrictions would harm the people whom both the military and the press are meant to serve.