Barack Obama expressed pride in the efforts of Vice President Kamala Harris and her running mate, Tim Walz, who faced a decisive defeat in the election.