Baidu Inc.’s quarterly revenue fell its most in about three years, hurt by an economic downturn that’s capping its ability to fight bigger rivals in AI and make inroads in newer areas.