A police officer who subjected three of his colleagues to 'appalling' language and behaviour while on duty has been spared jail.