An extended mission for the Falcon 9 rocket’s second stage after launch Thursday with a space station cargo ship helped demonstrate SpaceX’s ability to perform long-duration flight sequences to inject U.S. military payloads directly into high-altitude geosynchronous orbit.