Sales of previously occupied homes rose last month after the worst summer for the housing market in more than a decade. And the industry fears lawsuits over flawed foreclosure documents could keep buyers on the sidelines in the final months of the year.