Officials announce unexpected climate and tax deal