Law curbs Trump's war powers