Cosby, 88, was facing foreclosure on two New York City properties—one of which he has now sold just weeks after listing it.