Cyber spy agency gets statutory powers