Trina Solar built a Texas factory to receive almost $2 billion from the Inflation Reduction Act. It changed course the day after Donald Trump’s election victory.