Which property of gravitational force allows us to define a potential energy?
Gravitational force is a conservative force, meaning the work done is path-independent and depends only on the initial and final positions. This property allows a potential energy function to be defined, as the work done equals the negative change in potential energy.
Ref: Halliday & Resnick, Fundamentals of Physics, 11th ed., Chapter 13: Gravitation.