Barack Obama was not pleased that Nancy Pelosi endorsed Vice President Kamala Harris the day after President Joe Biden dropped out of the presidential race, a new book claims.