SpaceX has launched its Starship rocket into orbit for the first time despite one of its engines shutting down too early.