A federal judge has agreed with a Tampa, Fla., executive’s claim that the antidepressant Paxil prompted him to embezzle $1.8 million from a former employer.

U.S. District Judge James Moody Jr. sentenced 42-year-old Patrick Henry Stewart on Monday to a year of home confinement and five years’ probation. Moody granted the reduced sentence in part because defense lawyers produced studies and experts that said Paxil sometimes triggers arrogant and uncontrollable behavior in people with bipolar disorder.