Congress is heading toward a series of challenging votes on the war with Iran, forcing lawmakers to take politically fraught positions.