Republicans cleared the way for the president to continue the conflict that has drawn in countries throughout the Middle East.