Some moderate Republicans in Congress have come out against President Donald Trump’s decision Thursday to withdraw from the Paris Agreement, saying it would lessen the country’s leadership role internationally.

They were joined by the former Democratic president who helped seal the deal: Barack Obama.

Rep. Carlos Curbelo called the decision to withdraw the U.S. from a pact aimed at combating climate change one that would “discourage American innovation.”

The Florida Republican went further, criticizing Trump for joining the only two countries in the world that haven’t signed on.

“Something’s not right when @POTUS is putting our country on a list with bad hombres Bashar al Assad of Syria and Daniel Ortega of Nicaragua,” Curbelo said on Twitter.