It’s a win for groups demanding transparency on how agencies are surveilling people.