Classified documents show rules for NSA surveillance without a warrant