Was Yahoo's mass wiretap legal?

The Fourth Amendment isn't what it used to be