The president’s address comes as the White House tries to contain the consequences of a conflict that has sent gas prices soaring and soured Americans’ feelings about Trump.