China sought to claim some of the credit for the ceasefire between India and Pakistan brokered by President Donald Trump on Saturday.