Man jailed for biting Harrogate police officer and spitting at another