UK Prime Minister Keir Starmer resigned , ending months of political turmoil and policy battles