The measure would have required Trump to end U.S. military operations against Tehran unless Congress approved them