Answer
The Riksdag, Sweden's parliament, played a pivotal role in recognizing Ulrika Eleonora as the successor to the Swedish throne. In an era marked by political turmoil and the Great Northern War, the Riksdag acted as a crucial institution in ensuring a smooth transition of power. This decision marked a significant moment in Swedish history and solidified Ulrika Eleonora's claim to the throne.