William Beach, the former commissioner of the Bureau of Labor Statistics who was nominated by Trump during his first term, has condemned the firing of his successor.