When booted from Recovery, the command used to reset SIP’s configuration is csrutil clear:
csrutil clear
csrutil clear run inside Recovery
When csrutil clear is run, SIP goes back to its factory-default settings. That means SIP is enabled if it was disabled previously and any custom configuration is cleared out.