Former president Barack Obama told allies that President Biden’s already tough path to reelection grew more challenging after his shaky debate performance on Thursday — a harsher assessment of the presidential race than his public comments, according to people familiar with his remarks.