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