Embattled Housing Authority Chief in New York City Is Resigning