The North Carolina Housing Finance Agency misspent federal money meant to help homeowners rework their mortgages after the recession, according to a government watchdog.