Question: The royal courts sponsored both Buddhism and what?
Sentence: Various classes of Vajrayana literature developed as a result of royal courts sponsoring both Buddhism and Saivism.
Answer in sentence: yes