PDRs4All: III. JWST's NIR spectroscopic view of the Orion Bar