Just because it was legal, does that make it ethical? 

Perhaps the legal motion was to provide ammunition for either campaign. Trump was correct that there were wiretaps. Where they appropriate? The leak of the existence of the wiretaps was certainly illegal. That aspect alone needs to be investigated. Who leaked that information, which lead to President Trump's tweet.