Unconstrained temporal gauge for Yang-Mills theory