A Physics-Informed Learning Framework to Solve the Infinite-Horizon Optimal Control Problem