A warehouse worker has been awarded £30,000 for unfair dismissal after his employers hired private investigators to follow him.