Boris Johnson lasted just three years as British prime minister. Weakened by scandals, he refused for months to resign but on Thursday was poised to quit, forced by his own…