Politicians’ judgement is often exposed, not by their own actions, but by the questionable people they choose to associate with – as Ed Miliband, Sir Keir Starmer and Boris Johnson have all discovered writes political editor David Maddox