Firing federal workers and freezing grants are upending a world-class system the US has built since World War II.