The Senate, largely along party lines, rejected a war powers resolution to halt U.S. involvement in Iran, with only three Republicans supporting the measure.