A Manhattan appeals court said New York City’s Department of Social Services may claw back more than $250,000 from a man who was shot during a home invasion and was awarded a $4.3 million settlement in a suit against his property manager.

A unanimous panel of the Appellate Division, First Department, ruled on Tuesday that the city may fully recover a Medicaid lien placed on the plaintiff, who is identified in court papers as D.J. and who the court said ignored a directive from the Department of Social Services to include it in settlement negotiations for his premises liability suit.