The United States and its NATO allies have agreed that Ukraine should have an “irreversible” path to membership in the alliance, enshrining the phrase in a document that was released on Wednesday during the alliance’s summit in Washington.