Congress passes war powers measure for the first time, breaking with Trump over Iran