The New York Times won a lawsuit arguing that Secretary Pete Hegseth’s policies violated the Constitution.