"Political motivation" does not mean that the motivation must be associated with only 1 political party. There are many political decisions taken in the US that both parties agree on, especially in this area of the intelligence state.
If anything, as the judge notes, the current administration was likely somewhat more "friendly" to Assange than the Biden administration will be.