The president hopes the ceasefire with Iran and falling gas prices will help him politically. History suggests otherwise.