It was made the official state religion by the Mongol Yuan dynasty and the Manchu Qing dynasty that ruled China . It was adopted as an official state religion by the Mongol Yuan dynasty and the Manchu Qing dynasty that ruled China .