Knowledge-Guided Machine Learning for Stabilizing Near-Shortest Path Routing