The constitution clearly says that a declaration of war is needed, and only short periods of action that are necessary in the interim can be taken by the president absent that. Congress does not have the authority to simply pass a law invalidating that. They did it, but it is most certainly not constitutional.