Researchers gave thousands of dollars to homeless people. The results defied stereotypes.