Pete Hegseth said he was the victim of a “partisan” decision.