The legislation, which would be the largest housing package signed into law in decades, now faces an uncertain path in the House.