Federal green grants canceled last year were selected “solely” based on a state’s political affiliation, the Trump administration said in a recent court filing. In the filing, Department of Energy…