If Obama did that, he was acting on National Security concerns.
I don't think he did, but he did get a FISA order to listen into a US citizen's conversations, aka Flynn's talking to the Russian ambassador, otherwise they could not listen in without the FISA court's order.
Go Obama!!!!