In a filing made to avoid discovery, the Energy Department conceded that hundreds of clean-energy grants were cancelled for one reason, that the recipients sat in states that voted against the president, and the same method is now visible across transit, health and public safety money.