I mean, was it ever explained when Spock became Captain and Kirk returned to the Admiralty?

The New Earth series contains narrative that establishes Spock being promoted to captain prior to Kirk's return to the admiralty. The former continued to serve as first officer while Kirk remained aboard Enterprise, however.