A Spectral Method for Joint Community Detection and Orthogonal Group Synchronization