The U.S. renewable energy industry doesn’t seem to take much notice of President Donald Trump’s views on green energy and climate change as investments surged to a record last year.

New investments were buoyed by wind and solar companies rushing to qualify for federal tax credits being scaled back this year. A total of $55.5 billion were spent in the sector last year, an increase of 28%, second only to China and beating Europe, according to research by BloombergNEF.

“It’s notable that in the third year of the Trump presidency, which has not been particularly supportive of renewables, U.S. clean energy investment set a new record by a country mile,” said Ethan Zindler, head of Americas for BNEF.

Global money flowing into the industry totaled $282.2 billion last year, up 1% from 2018. Despite the modest rise in investment, falling costs of wind and solar power ensured a healthy increase in capacity to 180 gigawatts, an annual increase of 13%.

China maintained its global dominance even as investments fell 8% to $83.4 billion, or the lowest since 2013. European renewable energy investments also slid, down 7% to $54.3 billion.

Brazil, which also has a climate-skeptic President in Jair Bolsonaro, boosted investments by 74% to $6.5 billion.

The headline number, seen as an indicator of progress in the global climate fight, remains under its 2017 peak of $315 billion. Even that level is far below what is likely needed to meet goals set under the Paris climate agreement, which targets the global temperature increase since the start of the industrial revolution to less than 2 degrees Celsius (3.6 degrees Fahrenheit).

Under a 2-degree Celsius scenario, the world should have been investing about $580 billion in green energy each year between 2017 and 2020, rising to $600 billion between 2021 and 2025, according to BNEF’s 2017 New Energy Outlook (NEO). “Our latest analysis shows that, as costs of renewables have fallen, achieving 2 Celsius becomes potentially cheaper than previously thought,” said Matthias Kimmel, BNEF’s lead analyst for NEO.

Yesterday, five major global research institutions revealed that the world had warmed by about 1 degree, compared with the 19th century average. As greenhouse-gas emissions continue to rise, 2019 was the second-hottest year on record and last decade was the hottest ever.

This article was provided by Bloomberg News.