Senate backs legislation to stem housing crisis