Surf City takes first step toward ending state’s affordable housing lawsuit