German chancellor, US president vow closer cooperation to end Ukraine war