President Trump appeared eager to project confidence that an agreement could be reached in a long-intractable conflict.