Pinterest says the internal layoff-tracking tool built by company engineers violated company policy.