Meta is exploiting a lucrative tax break intended to support research and experimentation. Its own accountants say the gambit is risky.