The Kraft Heinz Co. fired an employee after a picture of the employee wearing blackface with a Halloween costume surfaced.

And now a federal court judge agreed with the company, and ruled statements made during an investigation were not protected speech.