What is the War Powers Act, and can it stop Trump from attacking Iran?

While the US Constitution gives Congress power to declare war, the reality is far more complicated.