The fate was avoided through a federal loan and debt restructuring , and the city was forced to accept increased financial scrutiny by New York State .
The city received a federal loan and debt restructuring .