Yeah. If you consider "Congress" (who can declare war) and "Executive Branch" (the organization that does the spying) are the same "organization"... sure.
For the most part, the US Government is composed of very many different organizations who are specifically designed to not work together very well.
Its the Government's responsibility to spy on our enemies, is it not?