Trump had previously threatened to withdraw U.S. forces after German Chancellor Friedrich Merz criticized Washington's handling of the Iran war.