E-cigarette maker NJOY received bankruptcy-court approval to sell itself to New York investment firm Homewood Capital in a deal valued at more than $30 million.

Judge Christopher Sontchi of the U.S. Bankruptcy Court in Wilmington, Del., authorized the sale this week, according to court papers.

Through what is called a credit bid, Homewood...