Baidu Inc.’s revenue slipped slightly, hurt by an economic downturn that’s capping its ability to fight bigger rivals in AI and make inroads in new growth areas.