Sweden set a goal on Thursday of phasing out greenhouse gas emissions by 2045, among the most ambitious by any developed nation and ignoring uncertainty about climate change policies under U.S.