On the transition from two- to three-dimensional turbulence in the presence of background rotation