The speaker of the House said they must limit the president’s military actions as “America and the world cannot afford war.”