Last time around, Trump withdrew the US from the Paris Agreement. For investors, there are risks and opportunities.