As @MalloryCat said, you can get married while here on ESTA (no laws against that), and in fact you can get married today since you are currently here. I agree with @Daphne ., I would very much consider taking the consular processing visa route. It is a far superior visa, allows you to work upon arrival with the visa (remotely if your company allows that), and travel; did you bring all your clothes with you on this visit, if not, it might be eight months before you can get an AP approved which allows you to re-enter the US while your AOS is in process. Of course your wife at that point could fly back to get your things, but you won't be able to help.
In the end, it is your decision as only you and your soon to be wife know your specific situation.
Good Luck!