The US Senate has blocked a proposed resolution intended to limit US President Donald Trump's authority to launch military action against Iran.