Contempt of court allows judges to punish people or government officials who refuse to follow court orders or who interfere with court proceedings. It's a tool to enforce judicial power. In this case, Hegseth's new policy violated Friedman's earlier order, and the judge signaled that contempt charges could follow if the Pentagon continues defying him.