The test flight of Boeing’s Starliner capsule — which turned into a monthslong stay in space for two astronauts — was a debacle in the same league as shuttle disasters, NASA said.