Um, which federal agency do you think files the paperwork in court on behalf of the NSA?
(Hint: It's the other federal agency mentioned in the Intercept's headline. Second hint: This agency is home to the National Security Branch, created in 2005. Third hint: it's listed as one of the 17 "member agencies" of the intelligence community here: http://www.intelligence.gov/mission/member-agencies.html)