The coal giant’s concessions came in response to a two-year investigation by the New York attorney general.