German chancellor credits EU unity for Trump's shift on Greenland