Summit backs Ukraine on territory, but some nations abstain