That’s not the issue. The issue is what gives them the constitutional right to do so? It’s un-American, an invasive violation of civil liberties, and will likely be found unconstitutional on 4th amendment grounds when legal challenges hit the courts.