Below sample code helps to disable apex:commandButton and enable after the action.
Sample Code:
<apex:commandButton value=”Next Step” action=”{!newCase}” onclick=”this.disabled=true;this.value=’Saving’;this.form.submit();” oncomplete=”this.disabled=false;this.value=’Next Step’;” />
Cheers!!!