The National Security Agency is spending billions of dollars this year to test advanced artificial intelligence models for security risks, sparking debates over whether tech firms should pay for government oversight.