A vote in the US House of Representatives that would have forced Donald Trump to immediately end America's war with Iran has ended in a tie.