NATO states signed an agreement with Macedonia on Wednesday, clearing the way for the Balkan nation to become the military alliance's 30th member.