The network said it would bar the veteran correspondent from political coverage after he privately criticized President Trump and called himself a socialist.