When you're a global power and have no scruple, like the US, then there's nothing any country can do. Either they do exactly what the US agencies tell them, or they risk getting thrown out of trade agreements, financial treaties, diplomatic consequences, and in the end, the US will just do whatever it wants anyways, since they have military bases all around the world and enough power to monitor and spy as much as they want, international laws be damned.