"I’ll not go through what you put the officer through but he was obviously very distressed,” a judge told a man who pleaded guilty to assaulting a PSNI constable.