Queen Elizabeth II canceled an appearance just ahead of preparing to formally appoint Britain’s new prime minister.