The documents show the extent to which the E.P.A., which is the main federal agency charged with protecting human health and the environment, worked with groups like the Heartland Institute, which holds positions on climate change that are far outside the mainstream of scientific opinion, as opposed to the agency’s own chief scientists,” The New York Times reported.