The Lord loves a-hangin'.
Or two. Or many...
There is no evidence that the administration was actually sharing information with the Clinton campaign. This may have happened, but I would not put it past Obama to have his own private reasons for this type of surveillance with no intention of cutting Hillary in on the info.
Nixon apparently planned to blackmail his Democrat counterparts with exposure (50 points for anyone who knows the “goods” Nixon expected to find at the Watergate Hotel, after all, the MSM of the time never mentioned what the juicy details were supposed to be!). I wouldn’t be surprised at all to find that (1) Obama expected to gather information which could be used to pressure Trump, should he become POTUS, and (2) Obama may have had similar wire taps on Clinton for the same purpose.
After all, a “shadow government” was probably the plan no matter who won.
Trump probably assumed the lawless osama would try tricks like this and fed them disinformation.