Complex sentence: Until the early Edo era, these services were provided by a "Yuna" girl, but gradually it changed to sexual service; at that time, "Okami" (the government) inhibited these services.
Split into simpler sentences: Until the early Edo era, these services were provided by a "Yuna" girl, but gradually it changed to sexual services. At that time, "Okami" (the government) inhibited these services.