Wall Street trimmed losses as energy surged after Israeli Prime Minister Netanyahu said the war could end “a lot faster than people think”.