SAN FRANCISCO — It seemed as if the worst was behind him. But a former tax attorney and hedge fund manager who had settled investment fraud charges is back in court fighting the feds.

Lawrence Goldfarb, accused of misusing funds at his company, BayStar Capital Management, is supposed to be paying $14 million to investors as part of a deal with the Securities and Exchange Commission. Instead, he’s spent lavishly on basketball tickets, chartered flights and a Pottery Barn shopping spree, court records say.