The Senate voted to effectively block a resolution preventing President Donald Trump from using military force in Venezuela, after he flipped two Republican votes.