WASHINGTON—President Barack Obama delivered a detailed defense of his pre-eminent foreign-policy objective, arguing Wednesday that a diplomatic agreement to restrict Iran’s nuclear program presents Congress with a fundamental choice between war and peace.

Mr. Obama’s nearly hourlong speech at American University was aimed less at winning over critics of the Iran deal and more at giving Democrats a salable defense for supporting the agreement in the face of fierce political pressure. Congress is expected to vote on the deal...