The U.K. government set out its legislative agenda on Wednesday as chaos swirls around the prime minister’s leadership.