What’s the difference between an out of court settlement and providing hush money?

Not much. Paying hush money is not necessarily illegal; although blackmail is. (In trump’s case, I am not Stormy was blackmailing him.) The way Trump did it was illegal in several ways, since he falsified records in an attempt to circumvent election finance laws.