The launch and successful return of the rocket’s first stage marked the first SpaceX flight since a June accident.