The Second Circuit Court of Appeals has ruled the NSA's warrantless collection of millions of phone records is illegal. They did not rule on the constitutionality of the entire surveillance program.
http://thehill.com/policy/technology/241305-top-court-rules-against-nsa-program
http://thehill.com/policy/technology/241305-top-court-rules-against-nsa-program