She held the office of prime minister longer than any other British politician in the 20th century, setting her country on a right-leaning economic path.