The Senate vote to curb President Donald Trump's war on Iran narrowly failed on Thursday.