Many of the cancellations had been known for months, but the announcement underscored the drastic change in the energy landscape under President Trump.