CHICAGO—A federal judge sentenced the creator of Beanie Babies plush toys to probation Tuesday, with the billionaire avoiding prison time in one of the highest-profile cases in the government crackdown on undeclared offshore accounts.

Prosecutors argued for at least a year in prison for Ty Warner, saying the chief executive of Ty Inc. had an undeclared Swiss bank account that earned nearly $25 million in income and came forward only...