@Matt Bryant
Eh? The court of Moral opinion would be too easy an answer so how about running a Google search?
The Privacy and Civil Liberties Oversight Board (The Government Executive Branch) and
U.S. District Judge Richard Leon have both made their report about the legality.