President Donald Trump has officially withdrawn the U.S. from the Paris Climate Accord. Despite opposition to this move from some within his administration, most notably Secretary of State and former CEO of ExxonMobil Corporation (XOM 0.57%) Rex Tillerson, Trump was dead-set on living up to a campaign promise to exit the landmark climate agreement. 

There are bound to be winners and losers from the move. While there are obvious implications for global efforts to combat climate change, there will also be consequences for investors. Here are a few of the likely winners and losers from this landmark decision. 

Photo of Donald J. Trump.

Image source: Jamelle Boule.

Potential losers of the exit are, surprisingly, oil and gas producers. U.S.-based shale producers including EOG Resources Inc. (EOG 0.55%)Continental Resources, Inc. (CLR), and Pioneer Natural Resources (PXD 1.18%) are set to suffer as oil prices continue to be weighed down by the increased production Trump's policies imply. Oil-field service companies such as U.S. Silica Holdings Inc. (SLCA -1.87%) and National Oilwell Varco, Inc. (NOV -0.85%) are set to benefit from big spending increases in oil and gas production. 

Furthermore, solar panel manufacturer First Solar, Inc. (FSLR 0.71%) appears to be in excellent long-term shape no matter what direction the U.S. goes with the Paris accord. Keep reading to learn more about what's happening and why these stocks will either win or lose from Trump's decision. 

Sending a signal that the U.S. is doubling down on oil

After falling off sharply in late 2015 through the first half of 2016, U.S. oil production has been steadily increasing over the past year:

US Crude Oil Field Production (4-Week Average) Chart

US Crude Oil Field Production (4-Week Average) data by YCharts.

Even with oil prices still down by half from the peak, improvements in well development productivity have enabled U.S. producers to make money at much lower oil prices. This single factor has powered the recovery in onshore production, and experts anticipate output will continue growing. The U.S. Energy Information Administration expects U.S. oil production to approach 10 million barrels per day by 2018 -- a big jump from less than 9 million bpd in 2016. 

Independent onshore oil producers are driving much of this growth. Small producers are on track to spend a whopping 51% more in the oil patch this year, budgeting a combined $53 billion largely for production growth in 2017. 

Oil & gas producers term

Not only is U.S. oil output expected to grow, but an exit from the Paris accords also sends the signal that the Trump administration is doubling-down on domestic fossil fuels. Fears of carbon emissions from human activity have the rest of the developed (and much of the developing) world taking steps to move away from oil.Oil prices have already fallen recently on fears of a growing global oil glut. 

U.S. producers have done a remarkable job of cutting production costs. In its most recent earnings report, EOG Resources said that its return target for new wells is 30% after tax at $40 oil, while Pioneer's internal rate of return expectations is for 50%-100% after tax with oil at $55. Continental has also made significant strides, and management says that they are on track to operate cash flow breakeven with oil between $55-$60, even after a big increase in capital spending this year. 

But it's far from certain that U.S. producers will realize those prices soon. West Texas Intermediate crude futures fell to $48.40 per barrel, while the global Brent benchmark was $50.26 per barrel in recent trading. 

One of the potential unintended consequences of a U.S. exit from the Paris accord could be a change in OPEC's current strategy of production cuts to drive crude prices higher. But with U.S. output growth already cutting into the price gains from OPEC's cuts, the cartel's major players, such as Saudi Arabia and Iran, could decide it's now necessary to return to the market-share battle that sent oil prices below $30 as recently as early 2016. 

Whether or not that happens -- and frankly, it's an extreme example of the worst-case scenario for U.S. shale producers -- a glut of global oil inventories is already weighing on oil prices. And that's bad for American independents like EOG, Continental, and Pioneer Resources. 

U.S. Silica and National Oilwell Varco are set to benefit

Even as oil producers could struggle with lower crude prices, increased production investment is already paying off for U.S. Silica and National Oilwell Varco.

National Oilwell Varco's onshore equipment, wellbore technologies, and completion equipment segments have shown signs of life recently, with all three reporting sequential improvements in sales in recent quarters. And while the company still reported a GAAP loss last quarter, its EBITDA and operating cash flows results have improved sequentially as well. 

U.S. Silica has also turned the corner. Its sales have rebounded thanks to a resurgence shale drilling activity. The company returned to profitability last quarter, while investments in expanding its reach and scale have it positioned to ride the growth in shale production even higher in coming years.  

Even as the oil producers themselves could struggle with weak crude prices, both National Oilwell Varco and U.S. Silica are set to win from the growth in production spending in the near term. 

A solar panel maker will be a long-term winner, no matter what Trump decides

First Solar and many of its solar panel-making cohorts have seen sales fall recently as the industry enters a cyclical slowdown. However, First Solar is incredibly well positioned for the long term, no matter what direction Trump chooses to take on its climate and energy policy. 

First Solar already counts on sales outside the United States for a significant portion of revenue and cash flows. Furthermore, the company has more than $2 billion in net cash and short-term investments on its balance sheet, which has afforded it the ability to invest in improved manufacturing and its next-generation thin-film panels through the downturn, while its competitors will be forced to cut spending. 

A solid balance sheet has First Solar on track to continue to lead the market and generate significant sales when panel demand recovers in the very near future, no matter what the Trump administration's policy on climate and energy. A global focus on climate action and the increased use of renewables is set to provide a robust long-term tailwind for First Solar for many years to come.