Prime Minister Keir Starmer’s office confirmed that Peter Mandelson, the former envoy to the United States, had been appointed despite failing to pass security vetting checks.