The U.S. House of Representatives backed a resolution Thursday directing the president to halt U.S. military action against Iran, but the Senate voted later to block the measure.