A federal judge has dismissed a $2 billion lawsuit against comic-book icon Stan Lee and Marvel Entertainment Inc. alleging that a corporation he formed with a former partner owns the rights to Lee’s most famous characters, including Spider-Man, Iron Man, the Hulk and X-Men.

In a 14-page decision last week, Southern District of New York Judge Paul A. Crotty held it was “time to call a halt” to lengthy litigation in California, Colorado and New York claiming that Lee had improperly transferred his rights in the characters to Marvel Entertainment.