A bipartisan resolution to limit Donald Trump's power to wage war in Iran has failed in the U.S. Senate.