A federal judge just threatened to hold the agency’s leader in contempt.