"We helped, but Ukraine is not our war," the US president emphasized