In a joint statement, the countries’ leaders urged that international borders must not be changed by force.