If he is US citizen, you can use his passport to apply for your green card petiton and change of status. You should meet an immigration attorney and consult regarding all the documents you and you spouse has, so that it could be applied right way to begin with. It will save you time.
If you have realized you have omitted assets or debts, you must contact your attorney and amend your schedules to disclose omitted asset and claim proper exemption or omitted creditors. Consult with an experienced bankruptcy attorney immediately.
If you want to purchase a house through bankrutpcy court, it will have to be approved by the court and is sold to highest bidder and I presume you will go through escrow and obtain proper title insurance, which will ensure all the prior liens are taken care of. follow the proper procedure with the assistance of real estate broker, attorney, title company/insurance and escrow. Basically, you would need to follow proper procedure for purchasing a home through bankrutpcy court.