The president is punishing a group of former officials for expressing an opinion he didn’t like.