New York City has agreed to let a Muslim correction officer wear a kufi on the job in a settlement announced Wednesday.

Abdus Samad N. Haqq of Brooklyn was the name plaintiff in a federal lawsuit that claimed the city was violating the U.S. Constitution by refusing to make religious accommodations to officers who work for the Department of Correctional Services.