Putin's goal was to de-legitimise Western Governments full stop.So why didn’t he pile his money into known Russophile and socialist Jeremy Corbyn and instead bought the Conservative party?
He didn't really care who won.
See also Trump in the US.
See also support for Brexit to de-stabalise the EU + avoidance of EU anti-corruption laws.