BEIRUT — For much of Syria’s civil war, President Bashar Assad has been a man in retreat. Rebels control vast stretches of his country. A little more than a month ago, he faced the prospect of U.S. military strikes that might have finally tipped the military balance.