A Greater Manchester Police sergeant was demoted after making vile comments to junior police constables during a night out.