China wants to keep the United States away from its border regions (which is why the Chinese have been funding the Taliban to keep the US out of Afghanistan and prop up North Korea), but they also want to secure the trade routes out of China (which is why the Chinese have been building military facilities in places such as Sri Lanka).
While I assume that the Chinese will continue to fund anti-American interests in the Middle East, I also envisage a situation where the Chinese move military assets into the Middle East to fight against terrorism and piracy (similar to how the contradictory policy of supporting Afghanistan while fighting Xinjiang works).