Before you drop a trillion dollars, you do a cost benefit analysis and you factor for switching costs, the unique geography and population distribution of the U.S. the expected lifespan of solar panels, the battery install capacity necessary to facilitate nighttime and 100 to 1000 year weather event emergencies, the capacity to keep the grid online in the event of a world war, the cost to install HV lines to transport from solar hubs, etc.
You don't dogmatically order $1 trillion of something and sacrifice a functional independent, diverse, weather resilient, geographically distributed energy grid thats served the nation that invented the light bulb for over 125 years, because you read a clickbait headline about China.