US stocks close higher on ceasefire hopes in Mideast