The matter was settled as both leaders sought to prevent a rift between their two countries